Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prasad Welekar on Jul 01, 2008 10:15
open dhtmlx forum
onCheck event dhtmlxtree

Hello Support,

I want to use onCheck Event of dhtmlxTree.
I tried with setOnCheck(fun) function as well as with tree.attachEvent("onCheck",fun);
Both are not working.
I am getting setOnCheck/attachEvent is not a function.
How can I use that event?
Thanks.
Answer posted by Support on Jul 02, 2008 01:43
If you are using dhtmlxtree 1.5+ the attachEvent must be available. For latest code both next lines are correct
    tree.attachEvent("onCheck",custom_function)
or
    tree.setOnCheckHandler("onCheck",custom_function)

Please be sure that "tree" variable point to dhtmlxTree object.