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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use different text in different Grids for same locale?

By default, Locale to the Grid control will be set same throughout the application. So, Grid’s localized text for all the Property Information will be same and cannot be changed for each individual Grid. However, we can overcome this by setting the required property changes in the ActionBegin and Load event of the Grid.

This KB explains the way to set different localized text for two different Grids.

HTML:

 

Razor:

 

WebForms:

 

.Net Core

 

Now, define the events for each Grid. In the Load event of the Grid, assign the create event to the pager using the model.pageSettings of the Grid. On rendering the ejPager internally by the Grid control, create event will be triggered and the respective localized text will be changed by the localizedLabels property.

 

Likewise, for the Grid ActionBegin event will change the properties defined within the localizedLabels.

Angular2:

 

 

 

Refer to the following Help Document for the different Localized Text Properties used in the Grid and Pager.

https://help.syncfusion.com/js/grid/globalizationandlocalization

https://help.syncfusion.com/js/pager/localization

The following screenshot highlights the difference in the Empty Record text and Pager Information.

Figure. Different Locale Text for Two Grids.

 

Article ID: Published Date: Last Revised Date: Platform: Control:
9182 08/17/2018 08/17/2018 ASP.NET MVC Grid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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