Unplanned
Last Updated: 30 Jan 2020 17:06 by ADMIN
Created by: Uladzislau
Comments: 1
Category: TreeView
Type: Bug Report
0

Add a CodedUI test which records expanding a node in RadTreeView. Run the CodedUI test and you will see that the TestMethod throws the following exception:

"Microsoft.VisualStudio.TestTools.Extension.UITestControlNotFoundException: The playback failed to find the control with given search properties."

Unplanned
Last Updated: 06 May 2020 07:24 by ADMIN

Add a RadTreeView and fill it with nodes so that a vertical scrollbar is shown.

The RadTreeView.TopNode property indicates that it is expected to return the RadTreeNode which visual node element is the first visible one in the current view. But it always return the first data node in RadTreeView no matter which node is currently visible at the top. This is because it consider the RadTreeNode.Visible property. 

Workaround:

            TreeNodeElement neFirstVisible = this.radTreeView1.TreeViewElement.ViewElement.Children[0] as TreeNodeElement;
            RadMessageBox.Show("TopNode = " + neFirstVisible.Data.Text);

Completed
Last Updated: 12 Jun 2020 16:01 by ADMIN
Release R2 2020 SP1
Hi Guys,


I'm crashing an app with TreeViewControl when open dialog is shown and you double click on file in that dialog and file current location is above treeview nodes.

Added example and animated gif so you can also try.

 

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.WinControls.UI.RadTreeViewElement.FindSelectionStartAndEndNodes(RadTreeNode nodeUnderMouse, RadTreeNode& fromNode, RadTreeNode& toNode)
   at Telerik.WinControls.UI.RadTreeViewElement.ProcessMouseSelection(Point location)
   at Telerik.WinControls.UI.RadTreeViewElement.ProcessMouseMove(MouseEventArgs e)
   at Telerik.WinControls.UI.RadTreeView.OnMouseMove(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseMove(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.RadControl.WndProc(Message& m)
   at Telerik.WinControls.UI.RadTreeView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

Best regards

Rene
Completed
Last Updated: 21 Jul 2020 12:19 by ADMIN
Release R3 2020 (LIB 2020.2.727)

How to reproduce:

    DataTable table = new DataTable();
    table.Columns.Add("ParentId", typeof(int));
    table.Columns.Add("ChildId", typeof(int));
    table.Columns.Add("ProductId", typeof(int));
    table.Columns.Add("ProductCode", typeof(string));

    table.Rows.Add(0, 1, 3, "Pr - 01");
    table.Rows.Add(1, 2, 4, "P r- 02");
    table.Rows.Add(1, 3, 5, "Pr - 03");

    this.radTreeView1.DisplayMember = "ProductCode";
    this.radTreeView1.ParentMember = "ParentId"; 
    this.radTreeView1.ChildMember = "ChildId"; 
    this.radTreeView1.ValueMember = "ProductId";
    this.radTreeView1.DataSource = table;

Completed
Last Updated: 23 Jul 2020 15:57 by ADMIN
Release R3 2020 (LIB 2020.2.727)
Hello,

I don't see the original mouse arguments on the RadTreeViewEventArgs of the NodeMouseClick Event?

Am I missing something?

How can I get the mouse button (left or right) on a nodeMouseClick event?
Completed
Last Updated: 15 Dec 2020 13:35 by ADMIN
Release R1 2021
Currently, the checkboxes in the tree view are not exported. 
Declined
Last Updated: 08 Feb 2021 10:08 by ADMIN

Code snippet for reproducing the problem:

 

    Private Sub RadForm1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Me.SongsTableAdapter.Fill(Me.MusicCollectionDataSet.Songs)
        Me.ArtistsTableAdapter.Fill(Me.MusicCollectionDataSet.Artists)
        Me.AlbumsTableAdapter.Fill(Me.MusicCollectionDataSet.Albums)

        AddHandler Me.RadTreeView1.NodeDataBound, AddressOf RadTreeView1_NodeDataBound

        Me.RadTreeView1.DataSource = Me.ArtistsBindingSource
        Me.RadTreeView1.DisplayMember = "ArtistName"
        Me.RadTreeView1.ValueMember = "ArtistID"
        Me.RadTreeView1.RelationBindings.Add(New RelationBinding(Me.AlbumsBindingSource, "AlbumName", "ArtistID", "ArtistID", "AlbumID"))
        Me.RadTreeView1.RelationBindings.Add(New RelationBinding(Me.SongsBindingSource, "SongName", "AlbumID", "AlbumID", "SongID"))
        Me.RadTreeView1.CheckBoxes = True
        Me.RadTreeView1.AutoCheckChildNodes = True
        Me.RadTreeView1.TriStateMode = True
        Me.RadTreeView1.ExpandAll()
    End Sub

    Private Sub RadTreeView1_NodeDataBound(sender As Object, e As RadTreeViewEventArgs)
        If e.Node.Level = 0 Then
            e.Node.CheckType = CheckType.None
        Else
            e.Node.CheckType = CheckType.CheckBox
        End If
    End Sub

Workaround: instead of using the NodeDataBound  event, use the NodeFormatting event to hide the checkboxes for the desired nodes:

    Private Sub RadTreeView1_NodeFormatting(sender As Object, e As TreeNodeFormattingEventArgs)
        If e.Node.Level = 0 Then
            e.NodeElement.ToggleElement.Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        Else
            e.NodeElement.ToggleElement.Visibility = Telerik.WinControls.ElementVisibility.Visible
        End If
    End Sub

Completed
Last Updated: 15 Feb 2021 10:40 by ADMIN
Release R1 2021 SP2

Steps to reproduce:

1. Set SortOrder to Ascending

2. Rename a root node

 

Completed
Last Updated: 10 Jun 2021 12:57 by ADMIN
Release R2 2021 SP1

I am using RadTreeView and setting FullRowSelect = false. This works for Windows7 them but doesn't work for Fluent theme.

Duplicated
Last Updated: 01 Nov 2021 05:40 by ADMIN
Created by: Stephan
Comments: 2
Category: TreeView
Type: Bug Report
0

1. Open Telerik Theme Viewer

2. Choose "Item Containers"

3. Observe "Tree"

4. Choose Theme "Office2019Dark"

Expected: Tree still shows content

Actual: Elements are not visible

Completed
Last Updated: 22 Mar 2022 13:50 by ADMIN
Release R2 2022 (LIB 2022.1.322)
Created by: Ken
Comments: 1
Category: TreeView
Type: Bug Report
0

Please use the attached sample project.

Result in 2021.1.326:

Result in 2021.2.511

Completed
Last Updated: 07 Jun 2022 13:47 by ADMIN
Release R2 2022 SP1

If the list separator for the culture is ";"

and you have nodes in RadTreeView that are bold, the following XML will be serialized:

var xml = "<TreeView xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" MultiSelect=\"true\" AllowDragDrop=\"true\" LabelEdit=\"true\" AllowDrop=\"true\">  <Nodes Text=\"New Package\" Expanded=\"true\" ImageKey=\"Package\" Font=\"Microsoft Sans Serif; 8,25pt; style=Bold\">    <Tag xsi:type=\"xsd:string\">&lt;Info&gt;&lt;FullName&gt;\\New Package&lt;/FullName&gt;&lt;ObjectType&gt;Package&lt;/ObjectType&gt;&lt;IsRunnable&gt;False&lt;/IsRunnable&gt;&lt;IsContainer&gt;true&lt;/IsContainer&gt;&lt;/Info&gt;</Tag>    <Nodes Text=\"Query Engine\" ImageKey=\"QueryEngine\" Expanded=\"true\" Font=\"Microsoft Sans Serif; 8,25pt; style=Bold\">      <Tag xsi:type=\"xsd:string\">&lt;Info&gt;&lt;FullName&gt;\\Query Engine&lt;/FullName&gt;&lt;ObjectType&gt;QueryEngine&lt;/ObjectType&gt;&lt;IsRunnable&gt;true&lt;/IsRunnable&gt;&lt;IsTableEntity&gt;true&lt;/IsTableEntity&gt;&lt;IsCut&gt;false&lt;/IsCut&gt;&lt;/Info&gt;</Tag>    </Nodes>    <Nodes Text=\"Connector\" ImageKey=\"Irion.SQLServer\">      <Tag xsi:type=\"xsd:string\">&lt;Info&gt;&lt;FullName&gt;\\Connector&lt;/FullName&gt;&lt;ObjectType&gt;DBConnection&lt;/ObjectType&gt;&lt;IsCut&gt;false&lt;/IsCut&gt;&lt;/Info&gt;</Tag>    </Nodes>    <Nodes Text=\"Connector Link\" ImageKey=\"DatabaseDatalink\">      <Tag xsi:type=\"xsd:string\">&lt;Info&gt;&lt;FullName&gt;\\Connector Link&lt;/FullName&gt;&lt;ObjectType&gt;DatabaseDatalink&lt;/ObjectType&gt;&lt;IsRunnable&gt;true&lt;/IsRunnable&gt;&lt;IsTableEntity&gt;true&lt;/IsTableEntity&gt;&lt;IsCut&gt;false&lt;/IsCut&gt;&lt;/Info&gt;</Tag>    </Nodes>  </Nodes></TreeView>";

However, if you try to load this layout on another machine where the list separator is "," the nodes wouldn't be bold:

Expected:

Actual:

Note: the problematic part is how the font is stored actually: "Microsoft Sans Serif; 8.25pt; style=Bold"

Workaround: if you change to this, it will be parsed properly: "Microsoft Sans Serif, 8.25pt, style=Bold"
Completed
Last Updated: 13 Mar 2024 08:49 by ADMIN
Release 2024.1.312

Repro-steps:

  1. Create a RadTreeView
  2. Set the TreeViewElement.ExpandTimerInterval to forever (so never auto expand by the timer).
  3. Enable drag/drop.
  4. Create an event handler for RadTreeView.DragEnding and make it cancel the drop operation.
  5. Fill the tree with random nodes and childnodes
  6. Drag and drop a node to collapsed node with children.

Observed behavior:

  1. The node is not dropped but the target node is expanded..

Expected behavior:

  1. The node is not dropped but the target node is NOT expanded, since the operation is cancelled.

 

Unplanned
Last Updated: 29 Mar 2023 11:33 by ADMIN

Use the following code snippet and compare the filtering performance when using bound and unbound mode:

         public RadForm1()
        {
            InitializeComponent(); 

            this.radTextBox1.TextChanged += this.RadTextBox1_TextChanged;
             this.radTextBox2.TextChanged += this.RadTextBox2_TextChanged;
            List<Data> list = new List<Data>();
            this.radTreeView1.BeginUpdate();
            for (int i = 0; i < 100000; i++)
            {
                list.Add(new Data()
                {
                    Id = i,
                    Name = "MyData_"+i,
                    ParentId = -1
                }) ;

                this.radTreeView1.Nodes.Add("MyData_"+i);
            }
            this.radTreeView1.EndUpdate();
            this.radTreeView2.DisplayMember = "Name";
            this.radTreeView2.ParentMember = "ParentId";
            this.radTreeView2.DataSource = list; 
        }

         private void RadTextBox2_TextChanged(object sender, EventArgs e)
         {
               this.radTreeView2.Filter = this.radTextBox2.Text;
         } 
        private void RadTextBox1_TextChanged(object sender, EventArgs e)
        {
            this.radTreeView1.Filter = this.radTextBox1.Text;
        }
    }

    public class Data
    {
        public int Id { get; set; }
        public string Name { get; set; } 
        public int ParentId { get; set; }
    }

Expected behavior: the performance in bound and unbound mode should be quite similar

Actual behavior: the performance is much slower in bound mode

Completed
Last Updated: 27 Apr 2023 06:55 by ADMIN
Release R2 2023 (LIB 2023.1.427)

When the CheckBox of a RadTreeNode is checked programmatically, the Unknown Action parameter needs to be passed to the NodeCheckedChanging/ed event.

 


Completed
Last Updated: 11 Oct 2023 10:11 by ADMIN
Release R3 2023

To reproduce:

1.Create new RadTreeView

2.Create new ImageList and populate

3.Assign ImageList to RadTreeView

4.Open Property Builder

5.Assign Image to a Node, Apply, Close

6.Re-Open, change Node to a different Image, the previous image remains

Expected: the new image is successfully updated.

Actual: the old image remains: 

Declined
Last Updated: 20 Oct 2014 14:41 by ADMIN
ADMIN
Created by: Stefan
Comments: 0
Category: TreeView
Type: Feature Request
0
IMPROVE. RadTreeView - add support for DataBindings of RadTreeNode

Resolution: The feature is duplicated with feedback item ADD. RadTreeView - add support for binding the checkboxes of the nodes to a field in the data
Here is the link to item:  http://feedback.telerik.com/Project/154/Feedback/Details/112624-add-radtreeview-add-support-for-binding-the-checkboxes-of-the-nodes-to-a-field. 
Completed
Last Updated: 22 Jul 2011 08:05 by ADMIN
When there is a tree node with long text and the FullRowSelect property is set to false and you click on this node, the scrollbar will scroll to right.
Completed
Last Updated: 16 Dec 2011 04:49 by ADMIN
1. Create a new project with RadTreeView
2. Run the project
3. Click inside RadTreeView
4. Press the up/down arrows several times
5. An exception will occur
Completed
Last Updated: 07 Dec 2011 12:22 by ADMIN
ADMIN
Created by: Jack
Comments: 0
Category: TreeView
Type: Bug Report
0
1. Create a new project and add RadTreeView
2. Add Add and Clear buttons
3. On Add button click - add nodes
4. On Clear button click - call the Clear method of the Nodes collection
5. Run the project and click the Add/Clear methods several times