Completed
Last Updated: 10 Dec 2021 16:18 by ADMIN
Release R1 2022 (LIB 2021.3.1213)
Graeme
Created on: 01 Dec 2021 13:40
Category: TreeView
Type: Bug Report
2
RadTreeView: Expanders are shown even the node doesn't have any child nodes

Please refer to the following code snippet: 

        Dim root As New RadTreeNode()
        root.Expanded = True
        root.Text = "Root"
        root.Name = "Root"
        Me.RadTreeView1.Nodes.Add(root)
        Dim telerikTreeNode = New RadTreeNode With
        {
            .Expanded = True,
            .Name = "Child1",
            .Text = "Child1",
            .Tag = "test",
            .Font = New Font("Arial", 12.0F, FontStyle.Regular)
        }

        Me.RadTreeView1.Nodes("Root").Nodes.Add(telerikTreeNode)
        For index = 2 To 5
            Dim child As New RadTreeNode()
            child.Text = "Child" & index
            Me.RadTreeView1.Nodes("Root").Nodes.Add(child)
        Next

0 comments