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

Page faild to turn to first page when new databind

1 Answer 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Seow BC
Top achievements
Rank 1
Seow BC asked on 10 Jul 2008, 08:37 AM
hi,

I facing radGrid's Current Page issue. The current page not assign to first page when a new search. This is misleading user on the searched result.

Example: I set pagezise=15, my first search return 45 records then I turn to page 3. afterward I do my second search with return 1 record only. In this case the grid will show me in 'record not found' unless I click the paging '1' in order to turn back to page 1.

Any idea? Is it I must set the current page =0 every new search? I think radGrid shd turn to first page when every new databind or new search.

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 11 Jul 2008, 08:34 AM
Hi Seow,

Could you please try setting RadGrid1.CurrentPageIndex = 1 before rebinding radgrid in the search event?

Regards,
Veli
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Seow BC
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or