Categories | Question details Back To List | ||
when checking the child i need the parent to be checked in the same way the child is checked(without the gray color) when checking the child i need the parent to be checked in the same way the child is checked(without the gray color) i want getAllChecked to return both the child and the parent id (all though i checked only the child) Answer posted by Support on Apr 22, 2008 09:19 You can use two state checkboxes and just add some custom code to onCheck event tree.enableCheckBoxes(true); tree.attachEvent("onCheck",function(id,state){ var pid=tree.getParentId(id); if (pid) tree.setCheck(pid,state); return true; }); |