Declined
Last Updated: 16 Feb 2024 19:49 by ADMIN
avani
Created on: 04 Jun 2019 08:30
Category: TreeView
Type: Bug Report
1
radTreeView1.TreeViewElement.AutoSizeItems is not working

Hi All,

 

I have made User control for custom node, in this user control i have used following controls

1 RadLabel (no of control - 3)

2 RadPanel (no of control -1)

3 PictureBox (no of Control - 4 )

4 TableLayoutPanel (no of control -3)

Means i have used total 11 controls within my user control.

Height of usercontrol = 146

Width of Usercontrol = 595

 

I have taken RadTreeView and above UserControl added as Node,following properties of treeview is set

this.radTreeView1.DataSource = Staff.GetStaff();
            this.radTreeView1.ParentMember = "ParentID";
            this.radTreeView1.ChildMember = "ID";
            this.radTreeView1.DisplayMember = "Department";
            this.radTreeView1.CreateNodeElement += this.OnCreateNodeElement;

this.radTreeView1.TreeViewElement.AutoSizeItems = true;
            this.radTreeView1.ShowRootLines = false;
            this.radTreeView1.FullRowSelect = false;
            this.radTreeView1.ShowLines = true;
            this.radTreeView1.LineStyle = TreeLineStyle.Solid;
            this.radTreeView1.LineColor = Color.FromArgb(110, 153, 210);
            this.radTreeView1.TreeIndent = 50;

this.radTreeView1.ExpandAll();

 

But when i run the code it shows like this means my control is not displaying and the property "AutoSizeItems" is not working.

 

hope for quick reply

2 comments
ADMIN
Dinko | Tech Support Engineer
Posted on: 16 Feb 2024 19:49

Hi Avani,

The feedback item status is changed to Declined due to inactivity.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 06 Jun 2019 13:28
Hello, Avani,        

According to the provided information, it is not clear what is the exact custom implementation that you have for the node elements. Note that using controls in visual node elements (e.g. RadTreeView as you described) may slow down the scrolling and will cause visual glitches as they do not support clipping. A better option is using elements instead of controls. Please refer to the following help article which demonstrates how to create more complex node elements: https://docs.telerik.com/devtools/winforms/controls/treeview/working-with-nodes/custom-nodes

However, if you are still experiencing any further difficulties, it would be greatly appreciated if you can provide a sample runnable project demonstrating the undesired behavior that you are facing. Thus, we would be able to make an adequate analysis of the precise case and assist you further. Thank you in advance. 
 
I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.