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