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

Load on Demand issue

1 Answer 29 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 16 Sep 2011, 09:59 PM
Hi,
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?

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 22 Sep 2011, 09:05 AM
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,
Pavlina
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
Tags
TreeList
Asked by
Chris
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or