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;
    oGrid.MasterTableView.Rebind();

    I have tried this also

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

    Both methods are not working.
    how can i make it work
  2. Pavlina
    Admin
    Pavlina avatar
    6084 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;
           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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top