Disable RowsUnload for collapsed rows

7 posts, 0 answers
  1. Prolifis
    Prolifis avatar
    8 posts
    Member since:
    Nov 2012

    Posted 04 Dec 2012 Link to this post

    Hi,

    Is there a way to say to the TreeListView not to unload rows when the parent node is collapsed?

    I have already set EnableColumnVirtualization="False" and EnableRowVirtualization="False"

    The same question when pager is used.

    Thanks,
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 04 Dec 2012 Link to this post

    Hello,

     Can you post more info about your scenario? Usually disabling the UI trivialization is not solution since you will get huge memory and performance problems.

    Kind regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Prolifis
    Prolifis avatar
    8 posts
    Member since:
    Nov 2012

    Posted 05 Dec 2012 Link to this post

    HI,

    I have tree with 5 000 - 10 000 nodes, one node has not more than 10 children, children are loaded on demand. While scrolling I have faced with slow performance. Disabling virtualization is fine, but when the node is collapsed/expanded it takes rather huge time to redraw. So I realize that it will take some memory but it will be fast during scrolling/collapse/expand. The same when pager is used.

    Thanks,
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 06 Dec 2012 Link to this post

    Hello,

     I'm not sure how exactly you load children on demand while scrolling however I believe that it will be better to use load on demand technique from our demo - load children when item is expanded. 

    Regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Prolifis
    Prolifis avatar
    8 posts
    Member since:
    Nov 2012

    Posted 06 Dec 2012 Link to this post

    Hi,
    I am using the same technique, however while expand/collapse operation in case items have been already loaded I have faced with performance problem - it takes rather huge time to redraw the nodes.
    My wpf control is situated inside winform application - can it be the reason of bad performance?
    Thanks.
  7. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 07 Dec 2012 Link to this post

    Hi,

     Can you verify what is the situation in your Visual Studio Output window? Do you have any binding expression errors?

    Kind regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  8. Prolifis
    Prolifis avatar
    8 posts
    Member since:
    Nov 2012

    Posted 07 Dec 2012 Link to this post

    Hi,

    I have solved my problem, my binding has Image and for some nodes it was null, after I've changed the logic (i.e. Image!=null) and turn on Virtualization - the performance is acceptable.

    I have faced with some additional problem - when I have row details (with radgridview inside) and it is opened,  during scrolling I've noticed some freeze (I guess it is redraw problem), maybe u can advice how to avoid it?

    Thanks!
Back to Top
UI for WPF is Visual Studio 2017 Ready