EasyUI Forum
May 03, 2024, 07:17:12 AM *
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 node of a tree without checkbox  (Read 8638 times)
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« on: September 09, 2014, 09:27:53 PM »

..
How to get all node of a tree ? Huh Huh Huh

I know i can get all of a tree node if there are checkboxes..but if the checkbox state turned to false..how can i do it?

> THIS IS WHAT I WANT BUT USING CHECKBOXES
> [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object]
> ===========
> THIS IS WHAT I GET IF USING THE getDate METHOD
> Object {id: 1, text: "BAMS App", children: Array[3], state: "open", domId: "_easyui_tree_1"…}

here the fiddle ..see the console.log
http://jsfiddle.net/hgcj79cw/3/

thanks in advance..
« Last Edit: September 09, 2014, 11:49:28 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: September 10, 2014, 12:53:48 AM »

Please try to call 'getChildren' method.
Code:
var nodes = $('#tt').tree('getChildren');
console.log(nodes);
Logged
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #2 on: September 10, 2014, 01:40:33 AM »

wow..thank you..working like a charm..  Cheesy

i don't even know if getChildren was possibly called without params
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
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!