Reputation: 991
I recently upgraded to latest jqGrid 4.8.2 .
When i am trying to add a row it is throwing up the following error.
Microsoft JScript runtime error: Object doesn't support this property or method
The Error is generated at the following location in the Jquery.JQgrid.min.js
The value passed are as follow :
a=1, b= {} , c='last' and d=0
Am i doing something wrong here ?
the project is in VS2010 MVC 3
EDIT :
This is how i call it :
g.addRowData(id + 1, datarow, 'last',id);
Upvotes: 0
Views: 318
Reputation: 221997
I develop alternative fork of jqGrid (free jqGrid) starting with changing license agreement of jqGrid 4.7.1. I fixed many old bugs and implemented many new features. I verified that I changed the first line of addRowData
if(["first", "last", "before", "after"].indexOf(pos) == -1) {pos = "last";}
to the following
if ($.inArray(pos, ["first", "last", "before", "after", "afterSelected", "beforeSelected"]) < 0) { pos = "last"; }
because some old web browsers don't have indexOf
method of Array. You can make the same modification in your non-minimized copy of jquery.jqGrid.js
or just use free jqGrid 4.9.1. You can try it just changing the URLs to CDN urls described in the wiki.
Upvotes: 1