Hi all,
I get a very strange error that I didn't have with 11.2 Infragistics version, but I'm not sure that the problem is generated by the newer version, the 12.1, also because of new jquery 1.8.2 library.
I've just set up a new MVC 4 project, and I've created a GridModel by controller side. This is the code:
...List list = ... // caught by an external method; GridModel gm = new GridModel(); gm.ID = "grid_xxx"; gm.DataSource = list.AsQueryable(); gm.PrimaryKey = "Id"; #region Grid Columns gm.Columns.Add(new GridColumn("Id", "Id", "number", "10%")); gm.Columns.Add(new GridColumn("Name", "Name", "string", "15%")); gm.Columns.Add(new GridColumn("Description", "Description", "string", "75%")); #endregion gm.Width = "100%"; #region Grid Selection GridSelection selection = new GridSelection(); selection.Mode = SelectionMode.Row; gmDispositivi.Features.Add(selection); #endregion
...
I don't have any kind of other features and I am sure that the list I use as source is ok; also all the columns are perfectly refered.
When I start my application I see the page loading and then I get this javascript error:
Grid stayes on loading and stops here. Any ideas on this error? Am I forgetting something extra to do?
Thanks
Flavio
Thank you very much!!!
You're right: JQuery 1.7.2 works right with igGridSelection. I set up a project starting with packages update, and I updated JQuery to the last version without thinking to these compatibilities.
Thanks also for your links. I will use Loader, as reported also in your samples.
Thanks!
Hello Flavio,
Thank you for posting in our forums.
Currently we support 1.7.2 version of jQuery library.
We are aware of the issues when using the newest version( there are other forum posts regarding this) and we will provide 1.8.* support with the future releases.
If you are using 12.1 for the first time you should be aware of the new JS resources
http://help.infragistics.com/NetAdvantage/jQuery/2012.1/CLR4.0?page=Deployment_Guide_JavaScript_Resouces.html
and the Loader
http://help.infragistics.com/NetAdvantage/jQuery/2012.1/CLR4.0?page=Using_Infragistics_Loader.html
Let is know if you have further questions.