Does the Change Page size work when not coupled to a databound control?

3 posts, 0 answers
  1. Mark Fitzpatrick
    Mark Fitzpatrick avatar
    36 posts
    Member since:
    Jan 2004

    Posted 01 Mar 2011 Link to this post

    Hello,
    I am using the RadDataPager to page thorugh what is essentially a home-grown control that does not support databinding. Everything works perfectly though and I am able to Page properly, except for changing the size of the page. If I change the size of the page I get the correct page size reflected on the server-side properties. However, the issues comes when I page forward or backwards. The datapager will default to the page size being 10. I understand that the pager uses the get method to move forwards and backwards so I am unable to persist the changed page size in the viewstate. Is there any way to force the pager into using a POST method or is there a way to have the control pass the page size as a querystring variable similar to the SEOPagingQueryPageKey?  Other than this the datapager works beautifully with my non-databound control. I could resort to re-writing the URL once the PageSizeChange event is captured, but am trying to avoid that if possible.

    Best Regards,
    Mark Fitzpatrick
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 07 Mar 2011 Link to this post

    Hello Mark,

    I tried to replicate the described problem but to no avail. Please examine the attached sample project and let me know if you manage to reproduce what you are getting in this project, and what steps to follow, so that we can test it too.

    Greetings,
    Pavlina
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mark Fitzpatrick
    Mark Fitzpatrick avatar
    36 posts
    Member since:
    Jan 2004

    Posted 09 Mar 2011 Link to this post

    I've figured out what was different in my situation, I had the AllowSEOPaging set to true. In this case the page size is not passed as a get parameter, which is too bad.
Back to Top