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

RadDataFilter Performance

4 Answers 85 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 08 Feb 2011, 02:37 AM
Hello,

I'm using a RadDataFilter with a RadTreeListView and I'm seeing long stalls/loading times when creating or modifying filters.

The data is hierarchical and whenever a filter is added to the control, all the items are expanded. Modifying the criterion for the filter also takes forever once focus is gone out of the text block.

If it helps, I'm binding the Source property of my DataFilter to the Items property of the RadTreeListView, and the list view has its ItemsSource set to an observable collection of items.
The list doesn't have that many items in it, even a small list takes some time. (100+ items).

Are you guys aware of this performance issue?

Thanks
--
Matt

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 08 Feb 2011, 08:40 AM
Hi,

 Can you post more info about the treelist version? Please post more info also how exactly all items are expanded. 

Regards,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Matt
Top achievements
Rank 1
answered on 08 Feb 2011, 08:23 PM
Hi,

I'm using version: 2010.3.1314.35.

I'm showing the hierarchy with a ChildTableDefinition, where the ItemsSource is bound to an internal ObservableCollection.

One thing worth mentioning. I added the filter items manually because the automatic creation wasn't working for my case.
I'm binding a list of type List<BaseModel> and it can contain multiple models that derive from BaseModel. The automatic filter creation was only picking up the properties of the base type, not the derived types. (Not all their properties are the same, and some of the columns are empty when the properties are not found in a type).

Also, I create the columns manually for the same reason. Only a couple of columns have CellTemplates, the rest are just direct text binding.

When I saw the items are expanded, I'm not sure what details could be helpful. I just have a small 2 level hierarchy, a list that contains BaseModel items, which have a Children list in them.
And whenever a filter is added, the level 0 items are all expanded and I see all the children. They are collapsed back when the filter is removed.

Let me know if you need more details,
Thanks!
0
Matt
Top achievements
Rank 1
answered on 10 Feb 2011, 11:48 PM
Any updates on this? Did you guys get a chance to repro this?

Thanks
Matt
0
Stefan Dobrev
Telerik team
answered on 14 Feb 2011, 11:21 AM
Hello Matt,

The behavior you are describing is indeed the expected behavior when filtering tree (list) view kind of structures. If an item is passing the filtering criteria it and all its parents have to be expanded in order for the user to understand what happened. For example you can look at Expression Blend's project structure tree view filtering or the Solution Navigator (part of VS 2010 productivity power tools) filtering which illustrate this concept. We currently do not expose an API (via property for example) that will allow you to switch off this behavior. What we do have are methods that will allow you to expand/collapse all hierarchy items.

What you have observed about auto-generation of columns and filters is also correct. We generate those based on your root level objects in order to avoid performances issues with walking down all your tree hierarchy up to the leaves.

Regarding your performance concerns you are absolutely right. We do plan to boost the performance in scenarios like yours in our upcoming releases.

All the best,
Stefan Dobrev
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
DataFilter
Asked by
Matt
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Matt
Top achievements
Rank 1
Stefan Dobrev
Telerik team
Share this question
or