We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

FormatString is ignored when focused?

Cannot avoid showing commas while inputting.

1 Reply

VJ Victory Jessie Selvam D Syncfusion Team January 30, 2015 11:05 AM UTC

Hi Rei,

Thank you for using Syncfusion products.

We have prepared a workaround sample for ignoring the NumberGroupSeparator in SfNumericTextBox. In the sample, we have set the Culture.NumberFormat.NumberGroupSeparator to empty string, so that comma will be ignored in any case. Text entered in SfNumericTextBox will be parsed to value when focus change events are fired. So we couldn’t ignore comma when SfNumericTextBox is focused and include comma when SfNumericTextBox is lost focus in sample. Also setting FormatString property will not ignore comma in SfNumericTextBox when focused. Please find the sample and online documentation for FormatString property in following link,
http://help.syncfusion.com/UG/winrt/documents/numberformatting.htm

Sample:
NumericTextBox_FormatString.zip


Please let us know if you need further assistance on this.

Regards,
Jessie

Loader.
Live Chat Icon For mobile
Up arrow icon