Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rich on May 13, 2008 11:29
open dhtmlx forum
Tree: disabled checked nodes

Hello,

I have a three state tree that loads XML containing nodes that are checked, and disabled. When I invoke the getAllChecked method, those nodes do not appear in the list. How can I work through this?

Answer posted by Support on May 14, 2008 04:21
The tree supports next commands
        getAllChecked - returns only fully "checked" items
        getAllPartiallyChecked- returns only "half" checked items
        getAllCheckedBranches- returns both "fully" and "half" checked items

None of those command will return disabled items. ( Disabled items not included in any checkbox related operation )
Basically you can try to use
       tree._getAllChecked("","",4);
to get list of all checked and disabled items

Answer posted by Rich on May 14, 2008 05:44
Is that method supported?  I'd hate to see it go away in a new version of the tree.
Answer posted by Support on May 14, 2008 07:55
The method is not a part of public API, basically it is an inner method which can retrieve list of item based on check state.
We not plan to remove it in foreseen future ( but still it is not a part of public API )