EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: aswzen on July 30, 2015, 11:51:07 PM



Title: How to get all TreeGrid nodes in non-hierarchy array?
Post by: aswzen on July 30, 2015, 11:51:07 PM
How to get all TreeGrid nodes in non-hierarchy array?

I see the getData() method only return all parent node including their child but in hierarchy style (children parent)


thanks in advance


Title: Re: How to get all TreeGrid nodes in non-hierarchy array?
Post by: stworthy on July 31, 2015, 01:32:12 AM
Please call the 'getChildren' method instead.
Code:
var rows = $('#tg').treegrid('getChildren');
console.log(rows);