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. Image for the cookie policy date



how can I set header text with Localizer?
This does not work

Thank you


@using Microsoft.AspNetCore.Mvc.Localization
@inject IViewLocalizer Localizer
@model IEnumerable<salesManager.Models.SalesMen.tbl_customers>
<ej-grid id="gridCustomers" allow-sorting=true allow-filtering=true allow-text-wrap=true datasource=@Model allow-scrolling="true" allow-paging=true>
    <e-filter-settings filter-type=Menu></e-filter-settings>
        <e-column field="n_id" header-text="ID" is-primary-key="true" is-identity="true" visible="false"></e-column>       
        <e-column field="v_kvdikos_extern" header-text=@Localizer["Κωδικός"] ></e-column>

4 Replies

SA Saravanan Arunachalam Syncfusion Team March 30, 2017 12:17 PM UTC

 Hi George, 
Thanks for contacting Syncfusion’s support. 
Could you please provide the following details? 
1.       To localize the headertext to which language? 
2.       What are all the culture you have register in startup.cs? 
3.       Do you have RC1 or RC2 update? 
4.       Do you have registered translating text in resource file? 
5.       Share the simple sample with the specified requirment. 
It will be great helpful for us to analyze about the issue and provide you a response as early as possible. 
Saravanan A. 

GR George Rossopoulos April 6, 2017 02:33 PM UTC


thank you for the response. There is no need for further details. Just do it and you will see that all the headers are replaced by something like Miscorosft.something,something
( I cannot recall now what exactly)

Thank you


SC Stefano Capobianco January 9, 2018 04:46 PM UTC

You need to use header-text="@Localizer["Κωδικός"].value"

For me this work very well


RS Renjith Singh Rajendran Syncfusion Team January 10, 2018 01:34 PM UTC

Hi Stefano, 

We are glad to hear that you have found a solution for your problem. 

Please get back to us if you need further assistance.  

Renjith Singh Rajendran. 

Live Chat Icon For mobile
Up arrow icon