Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Jul 16, 2008 08:36
open dhtmlx forum
DHTMLX Tree : Making checkbox and radio selected from XML

Hi,
I want to make checkbox checked or radio button present in tree selected from XML file only.
How to do it ????
Answer posted by Support on Jul 17, 2008 05:33
There is "checked" attribute which checks an item:

    <item checked="1" ...

If you do not want that a user check any item, you can use onBeforeCheck event handler. If it returns false, the changing state will be disabled:

tree.attachEvent("onBeforeCheck",function(id,state){
    return false
})