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
280
UltraWinTree SynchronizedCheckBox Bug
posted

If I add a node with children to a tree after setting the tree's Override.NodeStyle to SynchronizedCheckBox, and I click on the check box of the parent before expanding the children, then the parent's checkbox remains unchecked (the children's check boxes are checked, however).

This only appears to occur on the first time clicking the parent's checkbox, and only if the node has not already been expanded.

Imports Infragistics.Win.UltraWinTree

Public Class Form1
    Inherits System.Windows.Forms.Form

    Public Sub New()
        Dim UltraTree1 As UltraTree = New UltraTree()

        UltraTree1.Dock = System.Windows.Forms.DockStyle.Fill
        UltraTree1.Override.NodeStyle = NodeStyle.SynchronizedCheckBox
        Dim parentNode As New UltraTreeNode("Node 0")
        parentNode.Nodes.AddRange({New UltraTreeNode("Node 1"), New UltraTreeNode("Node 2")})
        UltraTree1.Nodes.Add(parentNode)

        Me.Controls.Add(UltraTree1)
    End Sub
End Class