Forum
11:56
08/08/2012
Hi:
I'm trying to use inline Nav "add new row" functionality for a jQGri Treegrid, so far i'm not able to configure it properly. i've read teh documentationa nd oteh rposts related to it but nothing is working.
I've set the options for addRow but whne i click teh add row icon, a new row is added in the grid and an erro pops out "Uncaught TypeError: Cannot read property 'length' of null jquery.jqGrid.src.js:8963″. Any thoughts on this? I've successfully configured teh inliene edit and its working fien for me but nlien add is not workinga s expected!
I've checked the jqgrid src, the error comes in this snippet
if (treeg) { $("span:first",this).html(""); }
else { $(this).html(""); }
var opt = $.extend({},cm[i].editoptions || {},{id:rowid+"_"+nm,name:nm});
if(!cm[i].edittype) { cm[i].edittype = "text"; }
if(tmp == " " || tmp == " " || (tmp.length==1 && tmp.charCodeAt(0)==160) ) {tmp='';}
this code is looking for span in the column but when i checked the column through firebug, there is no span tag rendered in the markup of that column
Any thoughts on this?
Kamran Ali
14:19
08/08/2012
I think the issue i'm facing is due to the fact that according to current limitations of jQGrid tree grid limitations here,
is not supported in tree grid mode.
For inline row add,
from inline edit add row documentation.
So as "addRowData" is not supported for tree grid,hence inline add row is also not supported for jqGrid tree grid. The limitation list at the jqGrid documentation, needs to be updated
Kamran Ali
Most Users Ever Online: 715
Currently Online:
72 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66