Normal 0 21 false false false DE X-NONE X-NONE MicrosoftInternetExplorer4
I have this event to check/uncheck all child nodes when a node is checked/unchecked. The problem is, that the UltraTree scrolls to the top (The TopNode have not changed).
Or is there a better solution for check/uncheck child nodes when the parent node has changed his checkstate?
private void ultraTree_AfterCheck(object sender, Infragistics.Win.UltraWinTree.NodeEventArgs e) { foreach (UltraTreeNode node in e.TreeNode.Nodes) { node.CheckedState = e.TreeNode.CheckedState; } }
You are right. With the latest service release it works.
Thanks for your Help.
Hi,
I ran your sample, scrolled down and then checked a whole bunch of random nodes on every level. But no scrolling occurred.
It sounds to me like maybe you just need to get the latest service release.
O.K. here is a sample. When you scroll down and check/uncheck level 1 or level2 nodes, the tree scrolls back to root node.
Setting a node's CheckedState property alone does not cause the control's scroll position to change. Most likely there is code elsewhere that is causing that to happen. If you like you can attach a sample here that demonstrates the problem so we can figure out what is going on.