hi guys,
I am trying to check all children nodes of a node when there is a click on the node name in the tree (the text part vs the checkbox).
here is the logic I am using :
$$(“tree”).attachEvent(“onItemClick”,function(id,e,node){ if ($$(“tree”).isChecked(id)) { $$(“tree”).uncheckAll(id); } else { $$(“tree”).checkAll(id); } } );
The problem I have, is that it checks/unchecks all the nodes of the tree, not juste the one clicked on.
It was working in previous versions of webix (1.6.x if I remember correctly).
However I cant revert back to the old version because there were some visual glitches with the checkboxes.
Can anyone spot what I doing wrong ?
BTW if I attach an event on onItemCheck it seems to go into some infinite loop, that’s why I am only attaching to the click event.
thanks for the help!