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

No post back when we click on the +

1 Answer 58 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Tejas Kan
Top achievements
Rank 1
Tejas Kan asked on 23 May 2011, 05:49 AM
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.

Tejas

1 Answer, 1 is accepted

Sort by
0
Gimmik
Top achievements
Rank 1
answered on 23 May 2011, 08:26 PM
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:
http://www.telerik.com/help/aspnet-ajax/treelist-recursive-selection.html

Hope this helps!
-Gimmik
Tags
TreeList
Asked by
Tejas Kan
Top achievements
Rank 1
Answers by
Gimmik
Top achievements
Rank 1
Share this question
or