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

Get data from Grid after filter

1 Answer 226 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Scott Leslie
Top achievements
Rank 1
Scott Leslie asked on 13 Sep 2011, 05:42 PM
I have bound a grid using sqldatasource. Enabled filtering.
How to i access the filtered datatable.

i want to get the whole datatable not the just page one.

Thanks


1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 14 Sep 2011, 06:07 AM
Hello Scott,

As far as I know RadGrid does not expose its resolved data source, thus you cannot access only filtered data source.
If you are using NeedDataSource to populate RadGrid you can get there RadGrid.MastarTableView.FilterExpressions and apply them on the original data source in order to manually filter the data source.

Other option is to handle filter ItemCommand and build manually filter expressions that will be applied later on original source.

Also please take a look at the following help article to see how the desired functionality can be achieved:
Operating with the FilterExpression of Telerik RadGrid Manually.

I hope this gets you started properly.

Thanks,
Princy.
Tags
Grid
Asked by
Scott Leslie
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or