Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
How to localize the igGrid
posted

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

Parents Reply Children
No Data