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
2115
In which case can Index (getter) and index(property) be different on a UltraTreeNode?
posted

When inspecting an UltraTreeNode that was previously added to the root of the Tree, I see that Index (getter) is 0 but index (property) is 3.

3 is the correct value.

Any idea why the getter would return 0 instead of 3?

Kind regards, Lieven Cardoen

  • 2115
    posted

    The node gets added like this:

        

    this.ribbonLayoutViewUltraTree.Nodes.Insert(dropNodeIndex, popupMenuNode);
    

    After this, when inspecting Index, it's 3 as it should be.

    After this, I'm adding an UltraTreeNode to the popupMenuNode with:

     popupMenuNode.Nodes.Add(newUltraTreeNode);
                
     popupMenuNode.Expanded = true;
     newUltraTreeNode.Selected = true;
    
    
    
    

    For some reason, after this, Index has become 0...

    Lieven Cardoen