EasyUI Forum
September 16, 2025, 01:18:15 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to get all TreeGrid nodes in non-hierarchy array?  (Read 6566 times)
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« 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
« Last Edit: July 30, 2015, 11:58:46 PM by aswzen » Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: July 31, 2015, 01:32:12 AM »

Please call the 'getChildren' method instead.
Code:
var rows = $('#tg').treegrid('getChildren');
console.log(rows);
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!