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

AllowLoadOnDemand = "True" - remove plus

3 Answers 56 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 30 May 2013, 10:52 AM
Hi!

I use Treelist (AllowLoadOnDemand = "True") if I know where there are no nested elements, how do I specify that they do not need to draw?

3 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 04 Jun 2013, 10:22 AM
Hi Alex,

I am not sure I completely understand what behavior you would like to get when expanding an item in the TreeList. Would you like to show only the items that have child elements? Or would you like not to show the button with triangle icon before to the item?

I made this video for a reference. Please take a look at it and let me know if you need further assistance.

Regards,
Victor Tachev
Telerik
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.
0
Robin
Top achievements
Rank 1
answered on 16 Jul 2013, 04:15 AM
Hi Viktor,

Is there anyway to hide the collapse/expand button if the row has no child?

My approach is:
- Get ChildCount for each record
- On ItemDataBound, if ChildCount = 0 then hide Expand button?

Is it possible?
0
Robin
Top achievements
Rank 1
answered on 16 Jul 2013, 04:21 AM
Just found this thread answered my question: http://www.telerik.com/community/forums/aspnet-ajax/treelist/disabling-expand-button.aspx

Tested, and it works.

Best regards,
Tags
TreeList
Asked by
Alex
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Robin
Top achievements
Rank 1
Share this question
or