Home › Forums › Guriddo jqGrid JS › Help › jqGrid issue – ts.p.colModel[idn] is undefined
Hi Tony,
I am getting an error “ts.p.colModel[idn]
idn=(ts.p.keyIndex===false)?ts.p.jsonReader.id:ts.p.keyIndex;drows=data[ts.p.jsonReader.root];if(drows){for(var i=0;i<drows.length;i++){cur=drows;row=document.createElement(“tr”);row.id=cur[idn]||cur[ts.p.colModel[idn].jsonmap]||cur[ts.p.colModel[idn].name]||i+1;if(ts.p.multiselect){addMulti(t,row);gi=1;}
These are the lines that is trigger for this error. Any help is appreciable.
Regards
Ranju
If I see you should configure jsonReader for your data – the id row
is set to read id:”some_id”, by default the this is id
in jsonReader maybe you should set value to “v_id”
Thank You Tony. It worked for me. Regards Ranju tony said: If I see you should configure jsonReader for your data – the id row is set to read id:”some_id”, by default the this is id in jsonReader maybe you should set value to “v_id”
Thank You Tony. It worked for me.
tony said:
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS