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

Localize field in the popup Editor

1 Answer 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michel
Top achievements
Rank 1
Michel asked on 14 Feb 2017, 11:07 AM

Is there a way to localize field in the popup editor of a grid.
I've try to use the legacy way but it does not work.

I've tried using appropriate resource file

...
@inject IViewLocalizer Localizer
@using Microsoft.AspNetCore.Mvc.Localization
...
        <div>
          <label class="control-label">@Localizer["idsResidents"]</label>
        </div>

Or

...
@inject IViewLocalizer Localizer
@using Microsoft.AspNetCore.Mvc.Localization
...
        <div>
          <label class="control-label">@Localizer["idsResidents"].Value</label>
 </div>

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 16 Feb 2017, 09:19 AM
Hello Michel,

This is not a known issue in the Kendo UI Grid.

The custom popup editor is made as an external template, and if this localization can be set on a regular label element outside of the Grid it should be set as expected in the Grid as well:

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/localization

Please check if this approach will work on a label element located outside of the Grid, and if it does, please send a runnable example, so we can test what is causing the issue in the Grid.

Also, please check if the localization is correctly set in the application:

http://docs.telerik.com/aspnet-mvc/getting-started/localization

Regards,
Stefan
Telerik by Progress
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
Michel
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or