Hi Monish,
TreeGrid’s getRows returns a hierarchy. Each row which has children has its own records array with additional records and so on. This is different than jqxGrid because jqxGrid does not have Hierarchies. In the TreeGrid’s API Documentation about getRows, you will see the following:
List of reserved Row members:
checked - Boolean value. Returns the row's checked state.
expanded - Boolean value. Returns the row's expanded state.
icon - String value. Returns the row's icon url.
leaf - Boolean value. Returns whether the row is a leaf in the hierarchy.
level - Integer value. Returns the row's hierarchy level.
parent - Object. Returns null for root rows. Otherwise, returns the parent row's object
records - Array. Returns the row's sub-rows collection.
selected - Boolean value. Returns the row's selected state.
uid - Number/String value. Returns the row's unique ID/Key.
Take a look at the “records” item.
Best Regards,
Peter Stoev
jQWidgets Team
http://www.jqwidgets.com/