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
265
UltraTree scrolls when child Nodes checkstate has changed
posted

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;
            }
        }


Parents
No Data
Reply
  • 69832
    Offline posted

    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.

Children