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

Go back to page 1 when filter changes

2 Answers 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 08 Jul 2008, 07:24 PM
I have a RadGrid with paging, sorting, filtering, etc...

When I am on a specific page greater than one, and then I change the filter - either by removing a filter value or adding a value to filter - the grid refreshes, but never goes back to Page 1.

How do I make the Pager reset to the first page whenever the filter changes?

Thanks!

Michael

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 09 Jul 2008, 07:47 AM
Hello Michael,

You can set CurrentPageIndex to 0 in ItemCommand where e.CommandName = "Filter".

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Michael
Top achievements
Rank 1
answered on 09 Jul 2008, 11:37 AM
Perfect!  Thanks Vlad!

Michael
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Michael
Top achievements
Rank 1
Share this question
or