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

Treeview check all the node

2 Answers 73 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
vairam
Top achievements
Rank 1
vairam asked on 26 May 2009, 07:11 PM
Hi

I have rad treeview with check box  and my treeview have more than 2000 nodes.
Top of the treeview control i have a check box check all. when i click the check all checkbox i need to select all the parent and child nodes. With out looping the node, is any other option is there?
Because if i loop all the node using javascript, IE giving the error message. script is running continuously it will slow down other operations.



Regards
Vairam

2 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 27 May 2009, 06:33 AM
Hello vairam,

You can try the current internal build. We recently released a hotfix which resolves a performance issue when checking lots of nodes.

Greetings,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Vivek
Top achievements
Rank 1
answered on 03 Oct 2012, 10:43 AM
Hi,
We are using 2009.3.1314.35 version of telerik asp.net controls.

Can you please provide information on how to achieve performance on having around 2000 nodes in radtreeview.
   $("#foo :checkbox").each(function () {
            $(this).attr("Checked", 'checked');
        })

   $("#foo :checkbox").each(function () {
            $(this).attr("Checked", true);
        })


both of the approaches select all treeview nodes on browser but it does not get saved on save button click.
server side code goes as follows,

List<RadTreeNode> checkedRegardingNode = new List<RadTreeNode>();
            foreach (RadTreeNode nd in trvSelected.GetAllNodes())
            {
                if (nd.Nodes.Count <= 0)
                {
                    if (nd.Checked)
                        checkedNode.Add(nd);
                }
            }
Please let me know if there is any way to achieve this.

Thanks,
Vivek
Tags
TreeView
Asked by
vairam
Top achievements
Rank 1
Answers by
Paul
Telerik team
Vivek
Top achievements
Rank 1
Share this question
or