API Questions on Kentico API.
Version 6.x > API > Paging View modes: 
User avatar
Certified Developer 11
Certified Developer 11
dfahy@ecentricarts.com - 7/24/2012 9:13:31 AM
   
Paging
Hi,

I'm pretty new to Kentico and I'm trying to get paging working with a cmsrepeater. I'm building a store locator web part which takes a Zip Code as input and then the user will click a Search button. In the click event the zip code is passed to a stored procedure and a result set is returned for all Zip Codes within 20 miles of the entered Zip code. This all works using Geography locations in SQL server and works fine. I bind the results in the click event handler and set the repeater's DelayedLoading property to true. This binds all results and I get them all displayed in one page. I wanted to add paging so I added web part properties that set PagerControl properties in the repeater e.g PagingMode etc. These properties are set after the OnContentLoaded() method executes. I still don't see any paging. All the examples in the devnet show repeaters bound on page load but I'm not getting my data until the button click event. Any help is appreciated.

David

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/30/2012 7:26:50 AM
   
RE:Paging
Hi David,

I would recommend using the Basic repeater in this case instead of the cms repeater. then, you will bind the data to the basic repeater and connect the Universal pager control to it - this should work and it should be also faster.

Best regards,
Juraj Ondrus