Hi ,
I have UltraWinTree with several nodes . On single clicking a node say "first node" , the Subsequent childnodes should open and on double clicking "first node" node again , the nodes should collapes .
So , i used three events and 1 integer to handle this issue . The below code is working fine for the single click to expand the nodes, but when i double click the parentnode to collapse its childnodes continously then for the third or fourth time the nodes collapsing happening for the single click . please help me solve this issue ....
Integer:
Events :
1) private void UTAttributes_AfterCollapse(object sender, NodeEventArgs e)
{
UTAttributesCollapseFlag = 1;
}
UltraTreeNode node = UTAttributes.GetNodeFromPoint(currentPoint);
node.CollapseAll();
UTAttributesCollapseFlag = 0;
node.ExpandAll();