This is a migrated thread and some comments may be shown as answers.

TreeView scrollbars

1 Answer 113 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 25 Jun 2012, 02:25 PM
I have a treeview on my form and I'm adding nodes to it in the Form.Load event.  When I run the code, the vertical and horizontal scrollbars appear as if all the nodes were expanded; the scrollbars aren't needed but they appear anyway.  I have to expand and then collapse each node, and then everything works as expected. Is this a bug? Do I need to set a certain property to prevent this?

1 Answer, 1 is accepted

Sort by
0
Accepted
Jack
Telerik team
answered on 27 Jun 2012, 03:56 PM
Hello Liru,

Thank you for bringing this issue to our attention. I logged it in our issue tracking system and it will be addressed in one of our upcoming releases. I updated also your Telerik points accordingly. You can track the issue status by following this link.

You can work around the issue by surrounding the code which adds nodes with calls to BeginUpdate and EndUpdate methods. Here is a sample:
this.radTreeView1.BeginUpdate();
 
//...
 
this.radTreeView1.EndUpdate();

I hope it helps. If you still experience the issue, please send us your application and we will try to find a proper solution.

Kind regards,
Jack
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
Treeview
Asked by
Michael
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or