Items appear with a delay when scrolling

3 posts, 1 answers
  1. Alex
    Alex avatar
    21 posts
    Member since:
    Apr 2012

    Posted 16 Sep 2012 Link to this post

    Hello.

    I'm using DataBoundListBox to show some items. The amount of these items can be from 50 to 200. But when I'm scrolling down or up the listbox then little freezes happen. Items show up with some delay. And this doesn't depends on items amount.
    How to prevent these delays?

    Thanks.
  2. Alex
    Alex avatar
    21 posts
    Member since:
    Apr 2012

    Posted 16 Sep 2012 Link to this post

    The problem solved. I've used UserControl as a part of DataTemplate and this impacted on the performance of the listbox.
  3. DevCraft banner
  4. Answer
    Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 17 Sep 2012 Link to this post

    Hi Alex,

    Thanks for writing.

    Indeed, using UserControl within an ItemTemplate in RadDataBoundListBox is not recommended since its XAML will be parsed each time the UserControl instance is loaded. This makes a significant performance impact. You can use Control instances instead of UserControls.

    Let me know if you have further questions.

    All the best,
    Deyan
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Back to Top