This is a migrated thread and some comments may be shown as answers.

Localized Column Title

1 Answer 404 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 29 Sep 2017, 03:01 PM

Hello,

Is it possible to localize the Column Title in the Grid component? 

For instance, in the following example, I would like to show Name or Nom depending on the user's locale.

$("#grid").kendoGrid({
       dataSource:remoteDataSource,
       height: 550,
       groupable: true,
       sortable: true,
       resizable: true,
       pageable: {
           refresh: true,
           pageSizes: true,
           buttonCount: 5
       },
       columns: [{
           field: "name",
           title: "Name",
           width: 400
       },

Cheers,

Paul

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 03 Oct 2017, 08:43 AM
Hello Paul,

The built in localization is available only for the messages of the widget. In case you want to localize custom messages I suggest you to take a look at the following blog article:


Basically you need a JSON file that contains the translations and a method that returns the specific translation by a given key:



Regards,
Georgi
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or