Localize field in the popup Editor

2 posts, 0 answers
  1. Michel
    Michel avatar
    44 posts
    Member since:
    Sep 2011

    Posted 14 Feb 2017 Link to this post

    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>
  2. Stefan
    Admin
    Stefan avatar
    3008 posts

    Posted 16 Feb 2017 Link to this post

    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.
Back to Top