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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

127447 Nov 16,2016 10:25 AM UTC Nov 18,2016 05:56 AM UTC JavaScript 3
loading
Tags: ejGrid
Balasubramanian Ramanathan
Asked On November 16, 2016 10:25 AM UTC

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


Ragavee U S [Syncfusion]
Replied On 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. 


Balasubramanian Ramanathan
Replied On November 17, 2016 06:10 PM UTC

Thank You.  i have solved it by doing

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

Thanks


Ragavee U S [Syncfusion]
Replied On 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. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;