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

Issue performance DataBoundListBox with multiple DataTemplate

3 Answers 131 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.
Nguyen
Top achievements
Rank 1
Nguyen asked on 22 Dec 2014, 05:14 AM
Hi,

I use DataBoundListBox to display feed like Facebook app.

But performance not good when apply multiple  Image Feed DataTemple in  DataBoundListBox.

A Image Feed can be 1 -> 9 Images. I use template selector to select image feeds. But performance very slow and it always crash in slow device when I load many image feeds (crash when item in viewport is 5 - 10 feed contain image)

Could you please help me best practice about that with DataBoundListbox.

Attached is some datatemplete with multiple image !

Thanks,

3 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 22 Dec 2014, 04:19 PM
Hello Nguyen,

Based on the information sent I could suggest that one of the issues is the fact that each list item consist of multiple images. While loading each image will change its size and trigger update in DataBoundListBox. One way to optimize this is to preset the estimated size of the images displayed, reducing the number of measure cycles.

In order to suggest more specific course of action we will need some additional information regarding the setup of the DataBoundListBox  - (code snippets of Xaml/C# or stripped down project).

Regards,
Tsvyatko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Nguyen
Top achievements
Rank 1
answered on 23 Dec 2014, 03:25 AM
Hi Tsvyatko,

I do everything, resize, download image manually, load in viewport ..... but it's not good, it gain more memory, and when memory is so high, it's make other feature too slow (ex: Navigation to other page slow, load data slow :( ).

When I download Image in viewport by Httpclient sometime DataBoundListBoxItem reuse image to other item :(

I will prepare the source code sample for you, could you please help me optimize it ????

Thanks,
Nguyen Pham
0
Tsvyatko
Telerik team
answered on 23 Dec 2014, 12:55 PM
Hi Nguyen,

Thank you for preparing sample project. Once we receive it we will look for the possible optimizations that can be most suitable for this scenario. Looking forward input in the opened support thread.

Regards,
Tsvyatko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DataBoundListBox
Asked by
Nguyen
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Nguyen
Top achievements
Rank 1
Share this question
or