How to localize grid column titles in JSP wrapper ?

2 posts, 0 answers
  1. Janis
    Janis avatar
    1 posts
    Member since:
    Aug 2013

    Posted 22 Jan 2014 Link to this post

    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" ?
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 24 Jan 2014 Link to this post

    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!
  3. UI for ASP.NET AJAX banner
Back to Top