ASPX templates
Version 6.x > ASPX templates > using the universal pager with a cmsrepeater control View modes: 
User avatar
Member
Member
greg.hardin-truematter - 4/23/2012 9:28:38 AM
   
using the universal pager with a cmsrepeater control
Hello All,

I'm attempting to use the universal pager control to have a bit more control over how the paging for a cms repeater control is rendered.

The research I've done suggests that i need to set the TargetControlName property to the id of the cms repeater control and then set the DelayedLoading property to true. Unfortunately the DelayedLoading property does not appear to exist in the CMSRepeater control.

What am I missing in this situation? Currently the pager control never appears and my cmsrepeater control does not limit itself to the page size set on the pager control.

User avatar
Member
Member
kentico_michal - 4/24/2012 5:47:01 AM
   
RE:using the universal pager with a cmsrepeater control
Hi,

Could you please double-check the DelayedLoading property as the CMSRepeater control should provide it.

Also, could you please go through the following section of Control's guide that demonstrates how to use the UniPager control in a little more detail: UniPager overview.

If it does not help, could you please post here your code.

Best regards,
Michal Legen

User avatar
Member
Member
greg.hardin-truematter - 4/24/2012 8:15:12 AM
   
RE:using the universal pager with a cmsrepeater control
Ah ha, I've discovered the problem. I was attempting to use the CMSRepeater webpart control rather than the cms:CMSRepeater control. That appears to have fixed it.

On a related note, is there anyway to make the next and/or previous links only appear when they're needed (eg. only previous on the last page of results, only next on the first page)?

User avatar
Member
Member
kentico_michal - 4/24/2012 8:28:11 AM
   
RE:using the universal pager with a cmsrepeater control
Hi,

Yes, it is possible. I would like to point you to the following forum thread that shows multiple ways how to accomplish it: UniPager links.

Best regards,
Michal Legen

User avatar
Member
Member
greg.hardin-truematter - 4/24/2012 8:37:33 AM
   
RE:using the universal pager with a cmsrepeater control
Perfect thanks for the link.