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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Localizer

Thread ID:

Created:

Updated:

Platform:

Replies:

129624 Mar 26,2017 08:38 AM UTC Jan 10,2018 01:34 PM UTC ASP.NET Core 4
loading
Tags: Grid
George Rossopoulos
Asked On March 26, 2017 08:38 AM UTC

Hi

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

Thank you

George

@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-columns>
        <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>
    </e-columns>
</ej-grid>
<ej-script-manager></ej-script-manager>

Saravanan Arunachalam [Syncfusion]
Replied On 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. 
Regards, 
Saravanan A. 


George Rossopoulos
Replied On April 6, 2017 02:33 PM UTC

Hi

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

George

Stefano Capobianco
Replied On January 9, 2018 04:46 PM UTC

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

For me this work very well

Stefano

Renjith Singh Rajendran [Syncfusion]
Replied On 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.  

Regards, 
Renjith Singh Rajendran. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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

;