Dthmlxtree checkbox readonly

Hi,
I am using dhtmlxtree. In that i want use checkbox as readonly. How i can make as readonly checkbox. any one help me

Hi,

you may use onBeforeCheck event. If it doens’t return true, the checkbox state won’t be changed:

var roId = "id_1"; tree.attachEvent("onBeforeCheck",function(id,state){ return id!=roId })

Hi,

 I want the whole tree check box should be read only, How i can do this,

The same approach:

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