Hi assapan,
How property unselectable works and does it works ?
Unselectable property prevents the selection of checkbox/radio elements, only.
Unfortunately, there is no properties for this, but you can do this:
delphi code
IWCGJQDynaTree1.Nodes[0].AddClass:= 'dynatree-node-disabled';
Then use the OnQueryActivate.script event and check the node:
javascript code
function (flag, dtnode){
if ($(dtnode.span).hasClass("dynatree-node-disabled")){
return false;
}
}
For better UI, you can implement some css style for
dynatree-node-disabled.
Best Regards,