iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
We have a code snippet below, but this isn't working for BindingProviders. Well, not for null values anyway. See, that's the thing... what if you want to convert a null value into something else? Why is IValueConverter.Convert not being triggered if the value bound to a property is null? If we're missing something, please let us know.
var p_ActualCash = new BindingDescription("Item.ActualCash") { StringFormat = "{0:c2}", Converter = new NullValueConverter() }; var p_ActualToken = new BindingDescription("Item.ActualToken") { StringFormat = "{0:n0}", Converter = new NullValueConverter() }; this.AddBinding("ActualCashLabel", BindableProperties.TextProperty, p_ActualCash); this.AddBinding("ActualTokeLabel", BindableProperties.TextProperty, p_ActualToken);
The goal of this is to display zero instead of empty string when the value bound to a Text property is null. And the StringFormat should be able to format the zero value. We could use TextField controls and assign placeholder values but that's just a weak solution, especially since currency symbols depend on mobile's culture info. Please advise.
Hallo,Thanks for your patience. Build 76 is now available in our nightly build server which addressed this issue. Please give it a spin and let us know how it works in your end.For complete details, see Update 4 Release Notes.Hope it helps!
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname