Load on Demand issue

2 posts, 0 answers
  1. Chris
    Chris avatar
    28 posts
    Member since:
    Jun 2012

    Posted 16 Sep 2011 Link to this post

    Just implemented my first RADTreeList using load on demand as I have a pretty deep and large structure.  My tree will be displaying a number of distinct types of node.  Some of which can have children and others never can.  My problem is that at the time of populating the tree I do not seem to be able to flag that specific nodes cannot be expanded.  As such the tree looks a bit messy as probably only about 30% of the nodes support expansion.

    My previous toolkit from Infragistics did allow the rowcreating event to be trapped at which point you could change characteristics such as clearing the 'expand allowed' flag.  Is this possible or will I have to live with the fact that the expansion indicators will be visible for all nodes?
  2. Pavlina
    Pavlina avatar
    6161 posts

    Posted 22 Sep 2011 Link to this post

    Hello Chris,

    Unfortunately this is a limitation of the Load On Demand feature as it does not load the full set of data. This prevents us from knowing if there are indeed child items, unless the button is clicked, in which case the items are requested. That is why expand buttons are generated for all nodes, regardless.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top