My tree is defined as:
<ignav:UltraWebTree ID="OrganizationalUnitTree" WebTreeTarget="HierarchicalTree" CheckBoxes="true" runat="server"> <ClientSideEvents NodeChecked="TreeNodeChecked" /></ignav:UltraWebTree>
And the script is:
function TreeNodeChecked(treeId, nodeId, bChecked){ var selectedNode = igtree_getNodeById(nodeId); var childNodes = selectedNode.getChildNodes();
if (bChecked) { for (n in childNodes) { childNodes.setChecked(bChecked); } }}
Shouldnt this get an event when I uncheck a checkbox? Whenever I uncheck a checkbox, I want all the children unchecked as well.
I am by no means a WebTree expert, but you have
if (bChecked) {
}
Wouldn't bChecked be false when you uncheck, thereby skipping over the code in question.
Ofcourse - I'm apparently an idiot! :)
Thanks! :D