Hi,
I can't localize my igGrid. The code below is my partialView. Any Idea why it doesn't work ?
@using Infragistics.Web.Mvc;
@model IQueryable<Terminal>
@(Html.Infragistics().Loader().Render())
// $.ig.loader({ scriptPath: "http://cdn-na.infragistics.com/jquery/20122/latest/js/", cssPath: "http://cdn-na.infragistics.com/jquery/20122/latest/css/", resources: "igGrid.*", autoDetectLocale:true });
// ]]>
@( Html.Infragistics().Grid(Model) .ID("GridResearchTerminal") .Width("100%") .Height("500px") .PrimaryKey("Id") .AutoGenerateColumns(false) .AutoGenerateLayouts(false) .Columns(column => { column.For(x => x.Reference).HeaderText("Reference").Width("20%"); column.For(x => x.Brand).HeaderText("Brand").Width("20%"); column.For(x => x.Model).HeaderText("Model").Width("20%"); column.For(x => x.PhoneNumber).HeaderText("PhoneNumber").Width("40%"); }) .Features(features => { features.Selection() .Mode(SelectionMode.Row) .MultipleSelection(false) .AddClientEvent("rowSelectionChanged", "onRowTerminalSelectionChanged"); features.Sorting().Type(OpType.Remote); features.Paging().Type(OpType.Remote); features.Filtering() .Type(OpType.Remote) .Mode(FilterMode.Advanced) .ShowNullConditions(true) .ShowEmptyConditions(true); features.ColumnMoving(); features.Resizing(); }) .LoadOnDemand(true) .AutofitLastColumn(true) .MergeUnboundColumns(true) .DataSourceUrl(Url.Action("GetTerminal")) .Render())
If i use manual referencing localization resource it works. But i want to let my browser autodetect my language and for that the Loader doesn't work.
Could you please help me ?
Can you provide me a simple example with igGrid localization with loader ? I'm using razor like my first post example.
Thank you Ivaylo for your answer.
I have seen the tutorial, that's why i'm trying to localize with the loader.
are my scriptPath and cssPath OK ?
scriptPath: "http://cdn-na.infragistics.com/jquery/20122/latest/js/",cssPath: "http://cdn-na.infragistics.com/jquery/20122/latest/css/",
I want to translate the grid in french, my browser language is in french. But nothing happens.
Hello,
Welcome to the community!
In general, the loader can automatically detect the language of the browser’s UI and switch to this locale. It is controlled by the autoDetectLocaleoption, which is set to false by default. If autoDetectLocale is set and locale is set, the locale option takes precedence.
So the relevant question is what is the language of the browser’s UI?
I believe you will find the following guide upon Customizing the Localization of Ignite UI Controls will help you achieve this.
http://help.infragistics.com/Help/Doc/jQuery/2014.2/CLR4.0/html/Customizing_the_localization_of_NetAdvantage_for_jQuery_controls.html Referencing localization resources using the Infragistics Loader:
http://help.infragistics.com/Help/Doc/jQuery/2014.2/CLR4.0/html/Using_Infragistics_Loader.html#_Ref322448609