jqGrid getRootNodes method is returning empty array, I'm using the following code to get the root nodes
var records = $trackerGrid.jqGrid("getRootNodes");
console.log(records);
any idea about this?
jqGrid getRootNodes method is returning empty array, I'm using the following code to get the root nodes
var records = $trackerGrid.jqGrid("getRootNodes");
console.log(records);
any idea about this?
I suppose that you filled parent
property of the root nodes in the wrong way. It should be parent: "null"
or parent: null
(see the answer).
The demo create tree grid having tree root nodes. One from the nodes is leaf. The demo shows that getRootNodes
works correctly.