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

Selected Rows become unselected after filtering

1 Answer 431 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Siingh
Top achievements
Rank 2
Siingh asked on 10 Jun 2011, 04:46 AM
Hi Telerik, All

I have GridView with GridViewSelectColumn and if i select couple of rows then apply filters then clear filters my all Selections is gone, means all previously selected rows become unselected.

is there anything i can do to retain same selection if i apply filter then clear filters

e.g
1. I have 5 rows 3 with Country US and 2 with Canada
2. Now i selected Canada rows
3. Apply filter on Country to US
4. only 3 rows visible "US"
5. Now clear filters
6. All 5 rows visible
7. All selected rows become unselected.


I want to keep that Canada rows selected.

I have used RadGriView in Winforms with filters and all my selections remmain selected even after filtering, so why WPF cant keep?


Kind Regards:

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 10 Jun 2011, 07:47 AM
Hi Siingh,

This would be the expected behavior. What you may try is to keep the selected items in a separate collection and add each of its containing items in the SelectedItems collection of the grid during the Filtered event.
 

Greetings,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Siingh
Top achievements
Rank 2
Answers by
Maya
Telerik team
Share this question
or