Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by haritha on Oct 01, 2008 03:27
open dhtmlx forum
dhtmlxtree



Hi,

when we initialize the grid using html table the table contains attributes like onbeforeinit and oninit. Are there any similar attributes when i initialize the tree with html.

I initialized the tree using html along with checkboxes. Using getAllChecked() i am getting the list of id's but how to get the value of the checked items.

Thanks in advance
haritha
Answer posted by Support on Oct 01, 2008 05:10
>> when i initialize the tree with html.
There is no such events in case of tree ( there is not such much config option for tree which need to be set before data loading, and you can exec any command which starts from set or enable by adding attribute with same name )

>>but how to get the value of the checked items.
var values=[];
var ids = tree.getAllChecked().split(",");
for (var i=0; i<ids.length; i++)
    values.push(tree.getItemText(ids[i]));