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
Please, could you show an example of how to set all necessaries thing to use the client side Locale, in general, other than the local?
Now my code is:
public void SetScaleLabelFormat(string numberDecimalSeparator, string numberGroupSeparator, int cantidadDecimales) { string lDecimales = "0000000000"; //string lFormat = "<DATA_VALUE:###" + numberGroupSeparator + "###" + numberGroupSeparator + "##0" + (cantidadDecimales == 0 ? "" : numberDecimalSeparator + lDecimales.Substring(0, cantidadDecimales)) + ">"; string lFormat = "<DATA_VALUE:###,###,##0" + (cantidadDecimales == 0 ? "" : "." + lDecimales.Substring(0, cantidadDecimales)) + ">"; mGauge.Scales[0].Labels.FormatString = lFormat; }
numberDecimalSeparator and numberGroupSeparator are the separators I want use no matter the local machine locale.
Hello Ricardo,
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.
Solved: .Scales[0].Labels.FormatString set to "<DATA_VALUE:###,###,##0.00>"
thank you and sorry for the inconvenient.Regards
Hi, I made further research and found this:
1- With .Scales[0].Labels.FormatString not set
2- With .Scales[0].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?
So, how can I set the format with client side locale, in a dynamically server side created gauge?