Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jul 21, 2008 07:12
open dhtmlx forum
Got an Erro on default Check box selection

When i try to use the below method for check box selection


tree1.setCheck(id,true);

then i got below JS error

The data necessary to complere this operation is not yet available.


Please let me know how to resolved it..or another way to select a chech box after tree load.


Thanks


Answer posted by Support on Jul 21, 2008 08:43
Please be sure that command was called after data loaded in tree and that you have unique IDs for each item.
( The tree loading is async, so you need to use onXLE event or second parameter of loadXML function to catch loading moment )