Grid Page Size problem

2 posts, 0 answers
  1. Velkumar
    Velkumar avatar
    85 posts
    Member since:
    Apr 2011

    Posted 29 Nov 2011 Link to this post

    I am trying to set the Page Size of a grid from a button's click event handler function using
    oGrid.PageSize = 10;

    I have tried this also

    oGrid.PageSize = 10;

    Both methods are not working.
    how can i make it work
  2. Pavlina
    Pavlina avatar
    6165 posts

    Posted 29 Nov 2011 Link to this post

    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;

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

    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
Back to Top