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

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

2 Answers 45 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Mark Fitzpatrick
Top achievements
Rank 1
Mark Fitzpatrick asked on 01 Mar 2011, 06:07 PM
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 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 07 Mar 2011, 01:09 PM
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!
0
Mark Fitzpatrick
Top achievements
Rank 1
answered on 09 Mar 2011, 07:23 PM
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.
Tags
DataPager
Asked by
Mark Fitzpatrick
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Mark Fitzpatrick
Top achievements
Rank 1
Share this question
or