Categories | Question details Back To List | ||
Tree enableThreeStateCheckboxes(1) - onCheck event? I am using enableThreeStateCheckboxes(1) with the standard version of the tree. If I manually check or uncheck all the descendants of a given node, that node is either checked or unchecked automatically... The problem lies in that I have attached code to the onCheck event which does not fire when the parent node is automatically checked/unchecked. I've been looking at the onCheckBoxClick() method, and it looks like the likely place for a workaround, but I don't have it quite figured out yet. Any recommendations would be greatly appreciated. Thanks, Wyatt Answer posted by Support on Jun 10, 2008 02:46 >> when the parent node is automatically checked/unchecked. This is expected behavior, the onCheck event occurs only when checkbox state was changed by user action. >>I've been looking at the onCheckBoxClick() method Not exactly - this method just an entry point. You can look at _setCheck method - this is key point, which used for any check|uncheck operation. Just add next line as start of _setCheck method this.callEvent("myOnCheck",[sNode.id,state]) and you will have your custom myOnCheck event , which will fire for any check|uncheck operation in grid. |