RadGrid PageSize

2 posts, 0 answers
  1. Vitaly
    Vitaly  avatar
    76 posts
    Member since:
    Aug 2011

    Posted 21 Nov 2013 Link to this post

    Hi,
    I have a two Radgrid in my aspx page.Based on search criteria I display either one and also it could  display both of them.Default page size is 10.When I display both RadGrid I need to change to page size 5.
    I have two different method when either Radgrid Binding set page size to 10 and the other method when both RadGrid must display set page size to 5.
    But when I run application it gives me  uknown server error - 500.
    when I remove page size application working fine.

    Please help me.
    thanks,
    Vitaly. 
  2. Kostadin
    Admin
    Kostadin avatar
    1733 posts

    Posted 26 Nov 2013 Link to this post

    Hello Vitaly,

    Thank you for contacting us.

    Could you please send us your code declaration and the related code behind in order to observe the issue further? A possible solution is to change the page size on PreRender event handler and then rebind the grids. For your convenience I prepared a small sample and attached it to this thread. By selecting an item in the DropDownList control you will display one of the grid or both of them and also will change their page size.

    Please give it a try and let me know if I could provide you any further assistance.

    Regards,
    Kostadin
    Telerik
    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 the blog feed now.
Back to Top