.Locale doesn't change the decimal separator

Hi,

I'm trying to display decimal values like  19,5  (mind the comma) in the regionale "nl-BE".
At the end of the treegrid I added

.Locale("nl-BE")

but I'm still getting 19.5  (with a point).

Could you provide a simple example to get this working?

Thanks,
Gaston


2 Replies

GT Gaston TA February 1, 2018 10:55 AM UTC

Hi,

Using .format("{0:n2}") on each field does the trick.

kr,
Gaston


JD Jayakumar Duraisamy Syncfusion Team February 1, 2018 01:36 PM UTC

Hi Gaston, 
We are glad that you have resolved your issue and please refer the following link to know more about number formatting. 
Also please find the user guide documentation for TreeGrid here 
Please get back to us if you need any other assistance. 
Regards, 
Jayakumar D 


Loader.
Up arrow icon