RadTreeView taking lot of time to bind data.

2 posts, 0 answers
  1. Sampath
    Sampath avatar
    5 posts
    Member since:
    Jan 2013

    Posted 17 Oct 2018 Link to this post

      <telerik:RadTreeView ID="RadTreeListUsers" runat="server" CheckBoxes="True" Width="585px" TriStateCheckBoxes="True" CheckChildNodes="True" meta:resourcekey="RadTreeListPermissionsResource1" />


    var userValues = new HashSet<string>(users.Select(p => NodeValue.FormatTreeLabel(p.DataTypeName, p.ToDataTypeStateAutoId, p.ServiceAreaNum, p.OperationName, p.AttributeName)));

                var userNodes = GetUserNodes(userValues);
                RadTreeListUsers.Nodes.AddRange(UserNodes);  //this line taking lot of time to load and display treeView

  2. Marin Bratanov
    Marin Bratanov avatar
    5063 posts

    Posted 18 Oct 2018 Link to this post

    Hi Sampath,

    If there is a huge number of nodes, this operation should be expected to be expensive - it needs to create a lot of server controls, then render their HTML, and then send this over the wire, and then the browser has to parse and render it on the screen.

    So, I would suggest you consider using load-on-demand: https://demos.telerik.com/aspnet-ajax/treeview/examples/programming/loadondemandmodes/defaultcs.aspx.

    Marin Bratanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top