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
505
Error: cols is undefined when loading igGrid
posted

Hello,

Does anyone see the error when using the igGrid control? 

I am using the latest version of Infragistics.js which comes from IgniteUI 2012.2. I using it in a Asp.net MVC 3 web. When loading the page contains the igGrid it comes an error: cols is undefined  (Infragistics.js line 349). Does anyone know what's the problem?


I use it like this:

@(Html.Infragistics().Grid<MessageEntity>()
.ID("igGridInboxList").PrimaryKey("MessageId")
.AutoGenerateColumns(false)
.LocalSchemaTransform(false)
.Columns(column =>
{
column.For(x => x.SenderName).DataType("string").HeaderText("From").Width("100px");
...
column.For(x => x.MessageId).DataType("string").HeaderText("Status").Width("0px");
})
.Features(features =>
{
features.RowSelectors().EnableCheckBoxes(true);
features.Paging().Type(OpType.Remote).PageSize(10).PrevPageLabelText("Pre")
.NextPageLabelText("Next")
.PagerRecordsLabelTemplate("PagerRecordsLabelTemplate")
.PageSizeDropDownLabel("PageSizeDropDownLabel")
.PageSizeDropDownTrailingLabel("PageSizeDropDownTrailingLabel");
features.Sorting().Mode(SortingMode.Single).ColumnSettings(settings => settings.ColumnSetting().ColumnKey("From").AllowSorting(true));
features.Selection().MouseDragSelect(true).MultipleSelection(true).Mode(SelectionMode.Row);
features.Hiding().ColumnSettings(settings =>
{
settings.ColumnSetting().ColumnKey("SenderName").Hidden(false).AllowHiding(false);
...
settings.ColumnSetting().ColumnKey("Status").Hidden(true).AllowHiding(false);
});
})
.Width("100%")
.Height("100%")
.AutoGenerateLayouts(false)
.DataSourceUrl(Model.Object.UrlToGetPagingInboxData).DataBind()
.Render()



Best regards

Jason_Shinetech

Parents Reply Children
No Data