Clientside Uncheck Everything

2 posts, 0 answers
  1. Neil
    Neil avatar
    50 posts
    Member since:
    Mar 2009

    Posted 03 Nov 2010 Link to this post

    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;
     

  2. Yana
    Admin
    Yana avatar
    4876 posts

    Posted 04 Nov 2010 Link to this post

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