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

How to implement filters in RadGrid?

0 Answers 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 21 Jun 2012, 01:44 PM

Hello,

I have a web forms application, which has a page with a Telerik RadGrid. This grid is bound using the NeedDataSource event and I have changed most of the columns to CustomFilteringColumns. In one of them I am using a line like this one:

((GridFilteringItem) ((filterControl).Parent)).FireCommandEvent("Filter", new Pair("Custom", "Status"));

 

to filter the orders that this grid contains. Since there are quite a few of them /more than 1000/ I get an error

Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out.

I understand that one possible way to fix that is to use a linq query with a where clause, which will serve as a filter.

My questions are: what is the best way to solve this problem? If it is using linq, how should I implement this filter?

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Ivan
Top achievements
Rank 1
Share this question
or