Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Sep 19, 2008 07:26
open dhtmlx forum
DHX Tree : How to know whether a node is open or not ?

Hi there,
How can I know that whether a particular tree node is open or not ?
Answer posted by Support on Sep 22, 2008 02:56
There is getOpenState which can be used.

var state = tree.getOpenState();

The method can return:
-1 - close,
1 - opened,
0 - node doesn't have children