Hi, I've been searching with no recents results, what is the way to set the Locale to numbers in an ultrawebgauge?
Thanks in advance
Appearance of the numbers in the gauge depends on the scale’s labels. If you need to format the numbers you should set FormatString of the labels. The format string should be set like this:
If, for example you need to set currency format you may use this format string:
Generally speaking format string consist of DATA_VALUE – this is the value coming from the component and .NET format string – this is what you can set as per your need.
Please let me know if this is what you are looking for or if I am missing something.
So, how can I set the format with client side locale, in a dynamically server side created gauge?
Hi, I made further research and found this:
1- With .Scales.Labels.FormatString not set
2- With .Scales.Labels.FormatString set to "<DATA_VALUE:###.###.##0,00>" (spanish locale)
It seems there's no way to set "." as decimal group and "," as decimal separator. It is that correct?
Solved: .Scales.Labels.FormatString set to "<DATA_VALUE:###,###,##0.00>"
thank you and sorry for the inconvenient.Regards
I am glad to hear that you were able to resolve this by yourself.
Please note you can always use CurrencyDecimalSeparator and CurrencyGroupSeparator to create your format strings independent from local machine culture.