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

Distinct Filter In Grid View With Server-Side Paging

1 Answer 98 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Wilmer
Top achievements
Rank 1
Wilmer asked on 20 Apr 2012, 08:44 PM
Hi,
We just converted an application to use the RadDomainDataSource and RadDataPager.
After doing this, the filter options only show values that exist on the current page instead of a distinct set of values across all pages.Consequently, for a user to filter for records they first have to find a page that actually has that value.

Is there a way to tell the control to return ALL distinct values for a column along with only the data for the current page?
I have experimented with the DistinctValuesLoading event, unfortunately doing this will be quite a bit of work and it seems like this should be something the grid is natively capable of.

Thanks for any input,
Will

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 21 Apr 2012, 08:37 AM
Hello Will,

 That is normal, since you only have one page of data on the client. The rest of the data is on the server. You can attach to the DistinctValuesLoading event of the grid and pull all of the relevant distinct values to the client. You can check this online example for a reference.

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Wilmer
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or