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

[Solved] How to set the nth page of grid as default page

1 Answer 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Balaji
Top achievements
Rank 1
Balaji asked on 19 Oct 2009, 11:33 AM
Hi Telerik,

I am using ajax rad grid in our application and it contains one selected record out of all records. And that selected record may exists in 4th or 5th page. By default 1st page is appearing in radgrid, but i need to show the selected record existing page. Please help me to get the solution.

Thanks in advance.
Balaji Velasiri

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Oct 2009, 11:55 AM
Hi Balaji,

Set the CurrentPageIndex property to required value in order to set the page of grid as default.

C#:
 
protected void RadGrid1_PreRender(object sender, EventArgs e) 
    RadGrid1.MasterTableView.CurrentPageIndex = 4; // Fifth page 
    RadGrid1.Rebind(); 

-Shinu.
Tags
Grid
Asked by
Balaji
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or