How to keep child nodes un-selected when parent is selected

Hello,

I have a requirement where only one node in the tree can be checked (in the checkbox). I got it working by attaching an “OnBeforeCheck” event and clearing previous selections and letting only the current node checked. However, if the user selects on a parent node checkbox then all the child nodes are getting selected and this is not intended. I know this is the default, but is there a way to keep only the parent node selected?

Thanks
Srinivas

Hello,

if the user selects on a parent node checkbox then all the child nodes are getting selected and this is not intended. I know this is the default

It is not the default behaviour. Child nodes are selected only if “3-state checkboxes” mode is enabled (this mode is disabled by default):

dhtmlx.com/docs/products/dht … boxes.html