0

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?

Kamran Ali
  • 5,904
  • 2
  • 26
  • 36

1 Answers1

1

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.

Community
  • 1
  • 1
Oleg
  • 220,925
  • 34
  • 403
  • 798