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

TreeView Indent in 2011 Q1 SP1

2 Answers 70 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Sonya L
Top achievements
Rank 1
Sonya L asked on 04 May 2011, 02:36 PM
Is there any way to work around the indent bug in the current version of the tree view?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Sonya L
Top achievements
Rank 1
answered on 04 May 2011, 08:17 PM
This seems very, very strange to me, but the solution I have found (it works so far anyway), is to simply add the handler for NodesNeeded.  It doesn't have to do anything, or have any code in it, but as long as it is declared, the indenting seems to be correct.  Just in case anyone else runs into this...
0
Julian Benkov
Telerik team
answered on 06 May 2011, 12:33 PM
Hello Sonya L,

You are right. To work in a load-on-demand scenario, you must handle the NodesNeeded event and this will enable the load-on-demand behavior in RadTreeView control. The reason we made the load-on-demand functinality work this way was because we wanted to provide simple API where just the process of handling one event (NodesNeeded) allows you to benefit from the load-on-demand feature.

For scenarios where Load-On-Demand is implemented outside the NodesNeeded event, this API may not be relevant. Because of this arising confusion we will consider implementing a new boolean property which enables/disables the external Load-on-Demand implementation. Most probably, the new property will be included in the next version of RadTreeView control. Currently, you can use an empty NodesNeeded event handler as you have found.

Best wishes,
Julian Benkov
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
Treeview
Asked by
Sonya L
Top achievements
Rank 1
Answers by
Sonya L
Top achievements
Rank 1
Julian Benkov
Telerik team
Share this question
or