AllowLoadOnDemand = "True" - remove plus

4 posts, 0 answers
  1. Alex
    Alex avatar
    1 posts
    Member since:
    Mar 2013

    Posted 30 May 2013 Link to this post

    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?
  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 04 Jun 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Robin
    Robin avatar
    10 posts
    Member since:
    May 2011

    Posted 15 Jul 2013 Link to this post

    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?
  5. Robin
    Robin avatar
    10 posts
    Member since:
    May 2011

    Posted 15 Jul 2013 Link to this post

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