Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by CRW on Dec 08, 2008 13:55
open dhtmlx forum
treegrid

Hello,

I seem to be having various errors with treegrid drag and drop (within one treegrid)

The JS errors (from firebug)

z is undefined
for (var i=0; i<z.childs.length; i++){
dhtmlxtreegrid.js (line 59)

c is null
var c = this.getRowById(row_id);var cel...ldNodes[col]);return this.cells4(cell)}
dhtmlxgrid.js (line 906)

The unexpected behaviour:
Sometimes 'Deleted' rows show up after moving around the node a few times (when they were previous, still crossed out, not containing all their children)

A get call is called to get children of this node (even if this node is already open), ending up with double the children.

Items without children seem fine.

Any clarification or information is appraicated.


Answer posted by Support on Dec 09, 2008 02:31
Both mentioned error may occur when non-existing ID used with grid's API.
Please be sure that each row has unique ID and such ID as "0" is not used. 

>>Sometimes 'Deleted' rows show up after moving around the node a few times (when they were previous, still crossed out, not containing all their children) 
The issue can't be reconstructed locally. If it still occurs for you - please provide snippet of code used for treegrid initialization ( you can send it directly to support@dhtmlx.com