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

Grid Page Size problem

1 Answer 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Velkumar
Top achievements
Rank 2
Velkumar asked on 29 Nov 2011, 07:45 AM
I am trying to set the Page Size of a grid from a button's click event handler function using
 
oGrid.PageSize = 10;
oGrid.MasterTableView.Rebind();

I have tried this also

oGrid.PageSize = 10;
oGrid.Rebind();

Both methods are not working.
how can i make it work

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 29 Nov 2011, 09:25 AM
Hi Velkumar,

I suggest that you try setting the PageSize using the code snippet below:
protected void Button1_Click(object o, EventArgs e)
   {
       RadGrid1.MasterTableView.PageSize = 10;
       RadGrid1.Rebind();
 
   }

I am also attaching my test page for reference. Check it out and see if it helps.

Regards,
Pavlina
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
Velkumar
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Share this question
or