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
2048
igGrid Selection feature and JQuery Syntax error
posted

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

Parents
No Data
Reply Children