RadDataFilter Performance

5 posts, 0 answers
  1. Matt
    Matt avatar
    6 posts
    Member since:
    Sep 2010

    Posted 07 Feb 2011 Link to this post

    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
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 08 Feb 2011 Link to this post

    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>>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Matt
    Matt avatar
    6 posts
    Member since:
    Sep 2010

    Posted 08 Feb 2011 Link to this post

    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!
  5. Matt
    Matt avatar
    6 posts
    Member since:
    Sep 2010

    Posted 10 Feb 2011 Link to this post

    Any updates on this? Did you guys get a chance to repro this?

    Thanks
    Matt
  6. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 14 Feb 2011 Link to this post

    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>>
Back to Top
UI for WPF is Visual Studio 2017 Ready