Issue performance DataBoundListBox with multiple DataTemplate

4 posts, 0 answers
  1. Nguyen
    Nguyen avatar
    5 posts
    Member since:
    Aug 2014

    Posted 21 Dec 2014 Link to this post

    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,
  2. Tsvyatko
    Admin
    Tsvyatko avatar
    832 posts

    Posted 22 Dec 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Nguyen
    Nguyen avatar
    5 posts
    Member since:
    Aug 2014

    Posted 22 Dec 2014 in reply to Tsvyatko Link to this post

    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
  5. Tsvyatko
    Admin
    Tsvyatko avatar
    832 posts

    Posted 23 Dec 2014 Link to this post

    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.

     
Back to Top
DevCraft banner