Loading data in blocks or alternative

3 posts, 0 answers
  1. Ric
    Ric avatar
    5 posts
    Member since:
    Sep 2015

    Posted 21 Sep 2015 Link to this post

    I have this multiselect on my asp.net mvc project


      <div class="demo-section user-selection">
          <h3 class="title">1. Select one or more Users</h3>
        //.Placeholder("No users selected")
        .Events(events => events.Change("NewSelection"))
        .DataSource(source =>
            source.Read(read =>
                read.Action("GetCustomers", "Home");
                        //.HtmlAttributes(new { style = "width: 400px" })
                        .HeaderTemplate("<div class=\"dropdown-header dropdown_Users\">" +
                              "<span class=\"k-widget k-header\">Photo</span>" +
                              "<span class=\"k-widget k-header\">Contact info</span>" +
                                                        .ItemTemplate("<span class=\"k-state-default item-user userPic\"><img class=\"userPhoto\" src=\"" + @System.Configuration.ConfigurationManager.AppSettings["BaseUrl"] + "user/image?userIid=#:data.IID#\" /></span>" +
                                                                  "<span class=\"k-state-default item-user \"><h3>#: data.givenName # #: data.sn #</h3><p>#: data.description #</p></span>")


    the data i load is of 2000 users that then appear in the multiselect list with their photo, first and last name and role.

    my problem is that the loading takes about 5 or 6 seconds, and when scrolling down the list it sometimes gets a bit "clunky"

    Is there anyway to improve the loading of data maybe making it load in blocks of 200 users at a time , or another way of improving performance?

  2. Daniel
    Daniel avatar
    2173 posts

    Posted 23 Sep 2015 Link to this post


    You can use virtualization to improve the performance.

    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 Feedback Portal and vote to affect the priority of the items
  3. Ric
    Ric avatar
    5 posts
    Member since:
    Sep 2015

    Posted 24 Sep 2015 in reply to Daniel Link to this post

    ah yes, it is much better now :)
    thanks for the help
Back to Top