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

Change locale at runtime

Thread ID:

Created:

Updated:

Platform:

Replies:

130914 Jun 10,2017 05:22 AM UTC Jun 12,2017 08:44 AM UTC JavaScript 1
loading
Tags: ejGrid
Edwin Kurniawan
Asked On June 10, 2017 05:22 AM UTC

Is is possible to change locale of grid at runtime? Grid initial locale is 'id-ID'
I tried using this syntax :
     var grid = $('#myGrid').ejGrid('instance'); //already initialized with some data
     grid.option({ locale: 'en-US' });
//data example: (in json stringify mode) "[{"Seq":1,"ItemName":"I Phone 6S","Qty":1,"UnitPrice":8840000,"DiscPerc":3,"DiscAmount":0,"Total":8574800,"Description":"Black","Id":4}]"

but getting this error in return :
TypeError: Argument 1 of Node.replaceChild is not an object.

I am using : Essential Studio Enterprise Edition - Community license ver. 15.1.0.41

And additional question, how to show column chooser with javascript function (not from column chooser button)?

Mani Sankar Durai [Syncfusion]
Replied On June 12, 2017 08:44 AM UTC

Hi Edwin, 

Thanks for contacting Syncfusion support. 

Query 1: Is it possible to change locale of grid at runtime?  
We have analyzed your query and based on your requirement we have already shown a demo by changing the localization for grid at run time. Please refer the below link 
We have also prepared a sample that can be available from the below link. 
If you still face the issue please get back to us with the following details. 
1.       Share the screenshot/ video of the issue that you have faced. 
2.       Share the stack trace of the issue that you have faced. 
3.       If possible please reproduce the issue in the above attached sample and provide us. 
The provide information will help us to analyze the issue and provide you the response as early as possible. 

Also refer the following links of how to pass the JSON string value 

Query 2: How to show column chooser with JavaScript function (not from column chooser button)? 
 Based on your requirement we have already documented a Syncfusion knowledge base by showing the column chooser externally in JavaScript function and the same can be available from the below link. 

Please let us know if you need further assistance. 

Regards, 
Manisankar Durai. 


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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

;