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

Disable RowsUnload for collapsed rows

6 Answers 69 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Prolifis
Top achievements
Rank 1
Prolifis asked on 04 Dec 2012, 11:08 AM
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,

6 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 04 Dec 2012, 01:52 PM
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.

0
Prolifis
Top achievements
Rank 1
answered on 05 Dec 2012, 08:23 AM
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,
0
Vlad
Telerik team
answered on 06 Dec 2012, 01:33 PM
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.

0
Prolifis
Top achievements
Rank 1
answered on 06 Dec 2012, 08:15 PM
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.
0
Vlad
Telerik team
answered on 07 Dec 2012, 07:36 AM
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.

0
Prolifis
Top achievements
Rank 1
answered on 07 Dec 2012, 02:10 PM
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!
Tags
TreeListView
Asked by
Prolifis
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Prolifis
Top achievements
Rank 1
Share this question
or