Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
Inlien Nav addRow method for Tree Grid
08/08/2012
11:56
Avatar
kamran377
Pakistan
Member
Members
Forum Posts: 4
Member Since:
08/08/2012
sp_UserOfflineSmall Offline

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

12/08/2012
14:19
Avatar
kamran377
Pakistan
Member
Members
Forum Posts: 4
Member Since:
08/08/2012
sp_UserOfflineSmall Offline

I think the issue i'm facing is due to the fact that according to current limitations of jQGrid tree grid limitations here,

"addRowData"

 is not supported in tree grid mode. 

For inline row add,

"this method uses two already constructed methods. When calling the method first executes the addRowData method which add a local row. After this the method call editRow method to edit the row"

 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

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
31 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information