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

Localization ASP.NET MVC - GRID

Hi,

My grid don´t change language.  What is wrong ??

_Layout.cshtml

@Scripts.Render("~/Scripts/ej.culture.pt-BR.js")

index.cshtml

@(Html.EJ().Grid<object>("GridCategoria")
        .Locale("pt-BR")
        .Datasource(ds => ds.URL(@Url.Action("DataSource"))
        .Adaptor(AdaptorType.UrlAdaptor).UpdateURL("Update").InsertURL(@Url.Action("Insert")).RemoveURL("Remove"))
        .AllowPaging()
        .AllowSorting()
        .ShowColumnChooser()
        .EnableHeaderHover()
         ....)

Thank´s

Marcelo

3 Replies

AS Alan Sangeeth S Syncfusion Team March 9, 2017 09:15 AM UTC

Hi Marcelo, 

Thanks for using Syncfusion products. 

We have analyzed your code snippet and found that you have only referred culture file “ej.culture.pt-BR.js” which is for globalization. 

To localize the grid texts, you need to provide localized text values in ej.Grid.Locale[“pt-BR”] object. Please refer the following documentation and online sample browser. 


Regards,
Alan Sangeeth S 



AA Andrias Abadi March 9, 2017 10:58 AM UTC

Maybe the locale file you referred is not included in the installation you need to head over to https://github.com/syncfusion/ej-global 
then get your culture files and include it. Hope it helps


YU Yudhishter April 4, 2018 10:20 AM UTC


iuui

Loader.
Up arrow icon