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

Clientside Uncheck Everything

1 Answer 58 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Neil
Top achievements
Rank 1
Neil asked on 03 Nov 2010, 09:29 PM
I am trying to uncheck all nodes in a treeview using the clientside API.  I noticed that in the documentation, there is an unselectAllNodes() method, is there a way to do this to uncheck nodes too?

Edit:

This did what I needed: 
var tree = $find("<%= radTreeView.ClientID %>");
        var i;
        for (i = 0; i < tree.get_allNodes().length; i++) {
            var node = tree.get_allNodes()[i];
            var checkbox = node.get_checkBoxElement();
            checkbox.checked = false;
        }


var tree = $find("<%= radTreeViewTopics.ClientID %>");
        var i;
        for (i = 0; i < tree.get_allNodes().length; i++) {
            var node = tree.get_allNodes()[i];
            var checkbox = node.get_checkBoxElement();
            checkbox.checked = false;
 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 04 Nov 2010, 04:53 PM
Hi Neil,

From Q3 2010 (which will be released next week) RadTreeView will provide uncheckAllNodes() method for this.

All the best,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Neil
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or