Apply filter on last level but expanded rows

2 posts, 0 answers
  1. Vinod
    Vinod avatar
    16 posts
    Member since:
    Nov 2011

    Posted 15 Dec 2011 Link to this post

    Hello,

    I have a treelistview.  When user right click on an item and applies filter then I add one FilterDescriptor to the treelistview.
    But it tries to filter on all the rows. My requirement is when user right click on any item then the filter should be applied only to the expanded nodes, not to those are collapsed nodes.

    I have treelistview having upto 7 levels of expanded nodes. What i want is when user applies filter descriptor then it should filter all the data whose first level is expanded

    Level 1 Level 2 Level 3 Level 4 Level 5 Level 6 Level 7
    (-) Org
    Dept 1
    Cell 1
    Mgr 1
    Lead 1
    Resp 1
    Work1
    Work2
    Work3
    Resp 2
    Work4
    Work5
    Work6
    (+) Dept 2
    (+) Dept 3
    (-) Dept4
    Cell 4
    Mgr 4
    Lead 4
    Resp 4
    Work1
    Work2
    Work3
    Resp 5
    Work4
    Work5
    Work6
    Dept 2 & Dept 3 are not in expanded state. While I filter I want the filter should be applied to those records of Dept 1 (Resp1, Resp2) & Dept 4 (Resp4 & Resp5)only
    User can right click on Level 7 data only
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 16 Dec 2011 Link to this post

    Hello,

     This can be achieved only if your not expanded child collections are null - your treelist is loaded on demand similar to our load on demand demo. 

    Regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top