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

Using built in filtering (from column headers) with DomainDataSource

2 Answers 91 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Matt Greer
Top achievements
Rank 1
Matt Greer asked on 29 Jul 2010, 05:06 PM
It seems like the RadGridView works with the DomainDataSource well for the most part. If I sort on a column for example, this causes the data to be sorted correctly with paging taken into account (ie the entire datasource is sorted, instead of just the page I am currently on).

But this is not true with the built in filtering functionality. If I click the filter icon on a column header, and pick a filter, it only filters the current data in the current page. What I want it to do is filter the entire datasource and repage/load the entire grid with the new filter. Effectively if I assigned a FilterDescriptor to the DDS myself.

Is this possible? Can I get the grid to do this for me, or can I intercept the filtering functionality and filter the DDS myself?

2 Answers, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 30 Jul 2010, 09:45 AM
Hello Matt Greer,

You have three options.

1. Implement server-side filtering like this blog post describes.

2. Translate all filtering that occurs in the grid to DomainDataSource FilterDescriptors, like this example demonstrates.

3. Turn the grid filtering off and throw RadDataFilter in the whole picture. RadDataFilter can directly filter the DomainDataSource like demonstrated in this example. RadGridView will be simply bound to the DDS and will have absolutely no clue that RadDataFilter is actually filtering the DDS.

I hope this helps.

Greetings,
Ross
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
0
Matt Greer
Top achievements
Rank 1
answered on 30 Jul 2010, 03:14 PM
Thank you, those are good choices to work with.
Tags
GridView
Asked by
Matt Greer
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Matt Greer
Top achievements
Rank 1
Share this question
or