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

Get Filtered Data

1 Answer 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Armen
Top achievements
Rank 1
Armen asked on 31 Oct 2012, 08:28 AM
Hello.

I am using RadGridView. It is bound to QueryableCollectionView. For example i have 300 records, with page size 30, after flltering the data using excel like filtering I get 120 records, after this need to take all this filtered records and do some action with it. The problem is that I am able to get all the records (QueryableCollectionView.SourceCollection) or records now visible on current page (QueryableCollectionView), but i need to get exact 120.

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Armen
Top achievements
Rank 1
answered on 08 Nov 2012, 03:09 PM
At last I found the solution ))


 IQueryable filteredData = (((QueryableCollectionView)myGrid.ItemsSource).SourceCollection).AsQueryable().Where(((QueryableCollectionView)myGrid
.ItemsSource).FilterDescriptors)

Tags
GridView
Asked by
Armen
Top achievements
Rank 1
Answers by
Armen
Top achievements
Rank 1
Share this question
or