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.
Unfortunately, activation email could not send to your email. Please try again.

Localization ASP.NET MVC - GRID

Thread ID:

Created:

Updated:

Platform:

Replies:

129269 Mar 8,2017 08:19 AM Apr 4,2018 06:20 AM ASP.NET MVC 3
loading
Tags: Grid
Marcelo Fernandes
Asked On March 8, 2017 08:19 AM

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

Alan Sangeeth S [Syncfusion]
Replied On March 9, 2017 04:15 AM

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 


Andrias Abadi
Replied On March 9, 2017 05:58 AM

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

Yudhishter
Replied On April 4, 2018 06:20 AM


iuui

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.

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.

;