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

Apply filter on last level but expanded rows

1 Answer 55 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Vinod
Top achievements
Rank 1
Vinod asked on 15 Dec 2011, 06:38 AM
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

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 16 Dec 2011, 10:32 AM
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 >>

Tags
TreeListView
Asked by
Vinod
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or