Hi there
I recently updated from version 8.3 to 9.1 (with update NetAdvantage_20091_CLR2X_WIN_SR_2023) and I got an issue using the tree.
An example is better to understand. In this example I've got a default nodes called 'BBBBBB'. When I click on my button I would like to add my new node called 'AAAAAA' and it should be the first one. It is the case but I can't see the node (out of the tree, I mean the drawing area):
public Form2(){ InitializeComponent(); ultraTree1.Override.Sort = SortType.Ascending; // add nodes UltraTreeNode node1 = ultraTree1.Nodes.Add("BBBBBB", "BBBBBB");
}private void button2_Click(object sender, EventArgs e){ String itemName = "AAAAAAA"; UltraTreeNode folderNode = ultraTree1.Nodes.Add(); folderNode.Text = itemName; folderNode.Key = itemName;}
The only workaround I found yet is doing that just after adding a node:
ultraTree1.Override.Sort = SortType.None;ultraTree1.Override.Sort = SortType.Ascending;
pedav said: Hi, sorry - no hints - just the confirmation of the described behavioursince 9.1. I do not use any sorting but lazy loading when expanding the tree. Thinking of going back to 2008.3. Uwe Uwe Hein Folkwang Musikschule der Stadt Essen / Germany DevGroup-Ruhrpott.net
Hi, sorry - no hints - just the confirmation of the described behavioursince 9.1. I do not use any sorting but lazy loading when expanding the tree. Thinking of going back to 2008.3. Uwe
Uwe Hein Folkwang Musikschule der Stadt Essen / Germany DevGroup-Ruhrpott.net
For me it seems to be since 9.1.2023. I don't recall having those problems on 9.1.1000..
Well, I hope for a hotfix, because I do use other features that were only introduced on 9.1..
Thanks and hoping to see some fix soon,
caco
caconetafim said: The tree jumps (position of nodes in view change, most of the times, the part of the tree in view is shifted upwards) whenever I expand a node that's in the middle of the tree too. I just tried to do a Node.BringIntoView as suggested on the AfterActivate and AfterSelect and AfterExpand and AfterColapse events, none worked.. Any hints??
The tree jumps (position of nodes in view change, most of the times, the part of the tree in view is shifted upwards) whenever I expand a node that's in the middle of the tree too.
I just tried to do a Node.BringIntoView as suggested on the AfterActivate and AfterSelect and AfterExpand and AfterColapse events, none worked..
Any hints??
I do have the same problem with the WinTree on build 9.1.2023. It started to behave strange. The tree jumps (position of nodes in view change, most of the times, the part of the tree in view is shifted upwards) whenever I expand a node that's in the middle of the tree too. Only if the sorting is on too. I've added a support request already, but no answer until now.
Thanks!
That's true.
Thanks
You should be able to call the newly added node's BringIntoView method.