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

ejgrid localization thousand separator (space) and decimal separator (.)

Hi,

I would like to localize ejgrid with this options

Thousand Separator : (space)
Decimal Separator :  (,)

How do i achieve this with localization of grid.

Thanks


3 Replies

RU Ragavee U S Syncfusion Team November 17, 2016 09:04 AM UTC

Hi Balasubramanian, 

We suspect that your requirement is to localize the grid content based on certain culture. We can set culture for the grid using the locale property of the grid and, by referring the corresponding culture file in your sample project. 

The culture file can be found in the following location. 

 C:\Program Files (x86)\Syncfusion\EssentialStudio\XX.X.X.XX\JavaScript\assets\scripts\i18n 

Here, XX.X.X.XX denotes the Product Version such for example, 14.3.0.49 


Please refer to the below documentation for more information on the localization concept. 


Here is a demo grid sample with French culture, which has similar pattern such that thousand separators are space and decimal separators with a comma. 


Please try the above sample. If we have misunderstood your requirement, please share details on which culture/scenario, you would like to change localize the grid values. 

Regards, 
Ragavee U S. 



BR Balasubramanian Ramanathan November 17, 2016 06:10 PM UTC

Thank You.  i have solved it by doing

ej.addCulture("pt-PT", {
        numberFormat: {
            ","" ",
            "."".",
            groupSizes: [3],
        },
    });

Thanks



RU Ragavee U S Syncfusion Team November 18, 2016 05:56 AM UTC

Hi Balasubramanian, 
  
Thanks for your update. 
 
We are happy that your requirement is achieved. 
  
Regards, 
Ragavee U S. 


Loader.
Live Chat Icon For mobile
Up arrow icon