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;
You should be able to call the newly added node's BringIntoView method.
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.
I just tried to do a Node.BringIntoView as suggested on the AfterActivate and AfterSelect and AfterExpand and AfterColapse events, none worked..
Any hints??
Thanks!
That's true.
Thanks