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

Items appear with a delay when scrolling

2 Answers 38 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 16 Sep 2012, 04:21 PM
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 Answers, 1 is accepted

Sort by
0
Alex
Top achievements
Rank 1
answered on 16 Sep 2012, 07:29 PM
The problem solved. I've used UserControl as a part of DataTemplate and this impacted on the performance of the listbox.
0
Accepted
Deyan
Telerik team
answered on 17 Sep 2012, 05:57 AM
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.

Tags
DataBoundListBox
Asked by
Alex
Top achievements
Rank 1
Answers by
Alex
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or