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

How to localize grid column titles in JSP wrapper ?

1 Answer 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Janis
Top achievements
Rank 1
Janis asked on 22 Jan 2014, 03:20 PM
I have a grid defined in JSP and I need to localize column titles. Is it possible to get values from message resource bundle into column title?
<kendo:grid name="gridId" >
    <kendo:grid-columns>
        <kendo:grid-column title="Column Title 1" field="field1"  />
    </kendo:grid-columns>
</kendo:grid>
I.e. - how to localize "Column Title 1" ?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 24 Jan 2014, 02:09 PM
Hello Janis,

You could set the title from a variable initialized to the corresponding localized message:


<%
    String title = "My Localized Title";
%>

<kendo:grid name="gridId" >
    <kendo:grid-columns>
        <kendo:grid-column title="<%= title %>" field="field1"  />
    </kendo:grid-columns>
</kendo:grid>


Regards,
Atanas Korchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Janis
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or