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
Hi Jason,I'm attaching an MVC sample project which, I hope, is as close to your scenario as possible.I've used my own database, table and data, but apart from that I just copy-pasted your configuration.I don't have any problem or error when I tried it with the RTM build and the latest one available on our CDN.Can you please take a look at the attached sample and let us know if you are able to reproduce the issue with it?Thanks in advance - will be looking forward to your reply.
Cheers,Borislav
Hi Borislav,
Thanks for your sample!
Finally I found the problem is I wrote wrong clumn header text. In version 2012.1, since it doesn't have multi-column header support so there's no problem.
Jason
I see - glad I was able to help you out, Jason.Cheers!