No post back when we click on the +

2 posts, 0 answers
  1. Tejas Kan
    Tejas Kan avatar
    6 posts
    Member since:
    Oct 2009

    Posted 23 May 2011 Link to this post

    Hi team,

    I am using the RadTreeList control.
    When I try to expand or collapse the tree by clicking on the '+' or '-' of the tree, it dose a post back.
    How can I avoid this and have this happen only on the client side.

    Also a second question, I want to to be able to select/deselect all the child nodes by clicking any where on a parent node, again by using client side events.

    Thanks in advance.

  2. Gimmik
    Gimmik avatar
    170 posts
    Member since:
    May 2011

    Posted 23 May 2011 Link to this post

    Hi Tejas,

    I'll answer your questions in order.

    1) Unfortunately, there is no way to expand the RadTreeList without a postback. Only the data you view on the screen is bound to the control. This is done for performance reasons. In order to expand the RadTreeList client-side, the whole tree would need to be transferred with each postback. For large trees this would be prohibitively slow.

    2) This is fairly simple to do. It's called recursive selection and Telerik has a guide on how to implement it. Here's the link:

    Hope this helps!
  3. DevCraft R3 2016 release webinar banner
Back to Top