PDA

View Full Version : Show/Hide treenode which specific node attribute



ornanong_o
17 Oct 2010, 11:49 PM
How can I add listener to button for show/hide tree node which specific "canShow" attribute to node.

This is my tree node
node.id = 1
node.text = a
node.canShow = true
-------------
node.id = 2
node.text = b
-------------
node.id = 3
node.text = c
node.canshow = true
-------------
node.id = 4
node.text = d
------------
node.id = 5
node.text = e

this is my tree

root
|
----a
||||||
---------b
||||||
---------c
|
--d
|
--e

when I click to this button node "a" and node "c" must hide
and click this button again node "a" and node "c" must show