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

Localization ASP.NET MVC - GRID

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 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 


Andrias Abadi
Replied On 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

Yudhishter
Replied On April 4, 2018 10:20 AM UTC


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.

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

;