Home › Forums › Bugs › [jqGrid4.0]can’t add row by Navigator’s add button after first time
only add one row by the Navigator's add button.
when add the second row ,It's will be a js error,called “y[0] is undefined”
jqGrid 3.8.2 is OK
In minimized jas file Error occurs at code
if
(y[0].type==“checkbox”)
y length is 0
Stack trace is
Anonymous Function
It's still reproduced in 4.0 version.
To fix problem You should replace
if(fld && fld[0] !== null) { //on line 6585
to
if(fld && fld[0] !== null && fld[0] !== undefined) {
In the minified version you can search for:
if((y=a(“#”+a.jgrid.jqID(r),”#”+v))&&y[0]!==null){
and replace it with:
if((y=a(“#”+a.jgrid.jqID(r),”#”+v))&&y[0]!==null&&y[0]!==undefined){
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS