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

[Solved] Not able to change the Page Size

2 Answers 129 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Medac
Top achievements
Rank 1
Medac asked on 28 Oct 2009, 08:44 AM
Hi,

I have a Radgrid. I have set the Pagesize of the grid to 10 on load. On button I need to change the page size to 5. How can i acieve this?

Regards,
Medac

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 28 Oct 2009, 09:24 AM
Hello Medac,

Try the following snippet:
protected void Button2_Click(object sender, EventArgs e)
{
    RadGrid1.MasterTableView.PageSize = 5;
    RadGrid1.Rebind();
}

Kind regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Medac
Top achievements
Rank 1
answered on 28 Oct 2009, 09:57 AM
It is working. Thank you
Tags
Grid
Asked by
Medac
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Medac
Top achievements
Rank 1
Share this question
or