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

RadGrid rebind()

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 10 Mar 2012, 10:03 PM
I have a radgrid and I have a search button that when the user clicks it, it does a radgrid1.rebind(); Then if they change the search in the text box, and click it again, it does a radgrid1.rebind().

If the user is on say page 25 and it does the rebind with a new search, it still stays on page 25 even with a new search. Is there a way to get it to change to page 1?

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 13 Mar 2012, 10:08 AM
Hi Brett,

You could use the CurrentPageIndex  property to change the current page index:

radgrid1.MasterTableView.CurrentPageIndex = 0;

All the best,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Brett
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or