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

custom filtering

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
tomas
Top achievements
Rank 1
tomas asked on 21 Dec 2008, 11:11 PM
Hello.

I am filtering my dataset in db, not in the IIS (RadGrid), because it contains millions of rows. During the RadGrid_NeedDataSource event, I am clearing the FilterExpression property and thus RadGrid is not resorting the dataset again. (Is it right?)

The problem is if the user does some sorting, next time the FilterExpression is empty although there are some values in filter row and also the option NO FILTER is NOT selected (another filter function IS selected).

Why?

Thank you very much.

Tom

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 23 Dec 2008, 09:06 AM
Hi tomas,

One possible option in this case would be to set the filter expression on initial load, as shown here. This can be done in PreRender, to ensure that it is persisted on each page cycle.
I hope this helps.

Regards,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
tomas
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or