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.
Use below code, it works fine.
if (bChecked) { selectedNode.setChecked(true) ;//this is for root node
for (n in childNodes) { childNodes.setChecked(true); } }
else
{
selectedNode.setChecked(false)
for (n in childNodes) { childNodes.setChecked(false); } }}
um,,i am new on ultrawebtree infragistics,,and have same problem as you,,
i've already put the same script as you,,but it didn't work,,,
it's said igtree_getNodeById not found
how can i fixed it?
thanks
:)