Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
460
Weired error in UltraTree while setting ActiveNode
posted

 

Hi All

i am with weired error, while working on wintree

issue is

I have a ultratree with fewnodes,

when user clicks on button i am creating new node and adding to curremt tree nodes.

then setting newly created Node as ActiveNode.

some times it is working fine but some times it is reporting "Node is not part of the tree" can't set as ActiveNode

 

code i ahve wriiten like 

 

UltraTreeNode currentNode = ultratree.Nodes.ActiveNode ;

UltraTreeNode childNode = new UltraTreeNode(null, "ProductA");

currentNode.Nodes.Add(childNode);

childNode.Selected = true;

 

ultratree.ActiveNopde = childNode

 

Can any one help me in this?

Can