Got an Erro on default Check box selection

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


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.


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 )