TreeView Indent in 2011 Q1 SP1

3 posts, 0 answers
  1. Sonya L
    Sonya L avatar
    36 posts
    Member since:
    Dec 2009

    Posted 04 May 2011 Link to this post

    Is there any way to work around the indent bug in the current version of the tree view?

    Thanks!
  2. Sonya L
    Sonya L avatar
    36 posts
    Member since:
    Dec 2009

    Posted 04 May 2011 Link to this post

    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...
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 06 May 2011 Link to this post

    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.
Back to Top