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

RadTreeView to Select All the Nodes on Click of CheckBox

3 Answers 479 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Manishkumar
Top achievements
Rank 1
Manishkumar asked on 16 Mar 2011, 01:06 PM
Hi;
I am using RadTreeView in my project along with asp checkbox.
We have an unusal requirement that consider a scenario where you have RadTreeView and in the
bottom there is Checkbox having text SelectAll. On Checking or Selecting on the Checkbox I should be able to show all the nodes
selected manner in TreeView. and On UnChecking or deSelecting I should be able to show all the nodes
Unselected manner in TreeView . please let me know how can I achive this functionality either from ClientSide or from Server Side.
For more information on requirement please see the attached image file 

3 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 16 Mar 2011, 01:39 PM
Hello Manishkumar,

You can use this example that is taken from the Telerik Code Library and change the button with a checkbox. You can also simplify it by removing the RadComboBox and directly finding the RadTreeView in the selectAllNodes and deselectAllNodes JavaScript functions.

Greetings,
Kate
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Manishkumar
Top achievements
Rank 1
answered on 16 Mar 2011, 03:41 PM
hi ;
your link was very helpful Can you please tell me once i have selected all the nodes how can i again Unselect it. I have tried using calling deselect functon but it rasing exception  sayong object does not support property or method.Can you please tell me with example how can i implement it.
0
Kate
Telerik team
answered on 18 Mar 2011, 01:09 PM
Hello Manishkumar,

Try to use set_checked(false) method as described here instead of the uncheck() method.

Regards,
Kate
the Telerik team
Tags
General Discussions
Asked by
Manishkumar
Top achievements
Rank 1
Answers by
Kate
Telerik team
Manishkumar
Top achievements
Rank 1
Share this question
or