Apply Filter on Expanded node only

2 posts, 0 answers
  1. Manishkumar
    Manishkumar avatar
    240 posts
    Member since:
    Feb 2009

    Posted 11 Nov 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 4
    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 & Dept 4 only
    User can right click on Level 7 data
    .
  2. Manishkumar
    Manishkumar avatar
    240 posts
    Member since:
    Feb 2009

    Posted 15 Nov 2011 Link to this post

    I am really stuck. Please help me asap. I just need how the FilterDescriptor can be applied to expanded node only rather than whole TreeListView
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top