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

FormatString not working for some values


I want to show some text for the SfNumericUpDown

If I use a format string = "of X" and X is a number other than zero, it works, but if X is 0 the value of the control replaces X


FormatString = "of 0" and current value 4, will show "of 4"
FormatStirng = "of 9" and current value 7, will show "7 of 9"

Is this a bug?

Thanks In Advance

1 Reply

DR Dhanasekar R Syncfusion Team December 31, 2018 11:38 AM UTC

Hi Rodrigo, 
Greetings from Syncfusion. 
We have validated your query  "Format string property of SfNumericUpDown".  When we set  "0" as a format string, then 0 will be considered as a Number for the SfNumericUpDown control. Whereas when we set format string as any other number or string, it will be considered as constants. Hence 0 gets changed when we change the SfNumericUpDown value by using + and - button. 
For more information about FormatString "0", please check on the below given link from Microsoft. 

Please let us know if you have any further clarifications on this. 

Live Chat Icon For mobile
Up arrow icon