Treeview check all the node

3 posts, 0 answers
  1. vairam
    vairam avatar
    85 posts
    Member since:
    May 2008

    Posted 26 May 2009 Link to this post

    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. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 27 May 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vivek
    Vivek avatar
    1 posts
    Member since:
    Oct 2012

    Posted 03 Oct 2012 Link to this post

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