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

Performance issue when scrolling, expanding

8 Answers 194 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Tim Ge
Top achievements
Rank 1
Tim Ge asked on 26 Apr 2011, 12:05 AM
I have 10+ columns in my radtreelistview control

when i scroll or expand, the responding time of the control is quite slow

for example, while expanding a node, even it only has like 1 or 2 child rows, it still take a long time to load

i have tried to 'hide' most of the columns, then the responding time becomes instant

is treelistview not designed for such purpose

or is there anyway to work around this???

8 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 Apr 2011, 07:20 AM
Hello,

 What's it your treelist version? According to your account you do not have any downloads of RadControls for WPF.

Please clarify!

Kind regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tim Ge
Top achievements
Rank 1
answered on 26 Apr 2011, 10:01 PM
I'm using RadControls for WPF Q1 2011
which is the latest one
and the company bought the control
thats why i dont have any downloads for this account
i just applied this account just to ask questions
0
Hristo
Telerik team
answered on 29 Apr 2011, 12:50 PM
Hi Tim Ge,

Welcome on board!

Please ask the purchaser to add your email to the list of licensed developers so that you can get access to the support services, the latest hotfixes and downloads from within your account.

Now straight to your question: We cannot reproduce the behavior you are describing. Please, prepare a small project demonstrating the issue and send it to us via support ticket.


Greetings,
Hristo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tim Ge
Top achievements
Rank 1
answered on 03 May 2011, 03:55 AM
ok, I'm asking them to add it today

btw, i found out that radtreelistview is trying to expand all my nodes
which is why the filtering is really slow

i implemented the treelistview using loadondemand methodology as there can be huge amount of nodes in total
so is there anyway to make the filtering not to expand all my nodes
but only filter rows that already been expanded?

0
Vlad
Telerik team
answered on 03 May 2011, 07:37 AM
Hi,

In our latest build the treelist filtering will work only with loaded items. I've attached an example application to illustrate you this. 

Greetings,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tim Ge
Top achievements
Rank 1
answered on 13 Jul 2011, 03:29 AM
Hello Vlad,

I have left filtering part for a while,
now I can see the lastest build of treelist filtering work only with loaded items,
but in the business logic I'm working, it need to work with 'expanded' items, not 'loaded' items
because in order to sort out the order correctly, i have loaded 'only part of items in the child levels'
so I would like to have the filtering to deal with only the expanded, not the 'loaded' ones?

how can i achieve this?

Cheers
Tim
0
Vlad
Telerik team
answered on 18 Jul 2011, 01:46 PM
Hi Tim,

I believe that if you load some child items during expand you can "unload" them if the parent item is collapsed and in this case filtering will work only on loaded/expanded. 

All the best,
Vlad
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Tim Ge
Top achievements
Rank 1
answered on 20 Jul 2011, 05:32 AM
nope, I cannot "unload" them
first of all, I didn't load "some" child during user expand, I added them after the page is loaded programtically.
Imagine three types of Items in the control : type A, type B and type C
type A can have type A children, and type B children
type B can only have type C children
type C can not have children

all type A items are stored in a database table, this table contains a field "Order"
in my control, i need to display the first level type A items that do not have parent
in order to update the "Order" field by Drag & Drop, 
I have loaded all type A items, which means  the first level type A items will have type A children in them, but not type B children

this way I can sort out the order pretty easy after Drag & Drop, as I have the tree structure sitting there for me to define the order
otherwise if type A children are not added at the start, I will have to do it through stored procedure, and I lose the structure there as the order is messed up

To conclude, I think it make sense for RadTreelistview to apply filter to only "expanded" items, (as you already changed it from expand all items in the tree to filtering only the "loaded" ones), or at lease provide an option to do it
otherwise how can I modify it to handle varies different senarios?
Tags
TreeListView
Asked by
Tim Ge
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Tim Ge
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or