Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Reference repeater from pager in code View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
Erik - 3/19/2013 12:01:58 PM
   
Reference repeater from pager in code
I am creating a custom web part that incorporates a repeater and separate pager (so we can place it elsewhere)
<%@ Register Src="~/CMSWebParts/Viewers/Query/queryrepeater.ascx" TagPrefix="cms" TagName="Repeater" %>

<%@ Register src="~/CMSWebParts/Viewers/Basic/UniPager.ascx" tagPrefix="cms" tagName="Pager" %>

<cms:Repeater ID="QueryRepeater" runat="server" />

<cms:Pager ID="QueryPager" runat="server" TargetControlName="QueryRepeater" PageSize="8" PagingMode="querystring" />

However, the pager isn't showing and my repeater's results aren't being limited to 8. What am I missing here?

Thanks,

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/19/2013 12:29:44 PM
   
RE:Reference repeater from pager in code
Hi,

I would recommend using the QueryRepeater control instead of web part and also specify the page control ID property in the query repeater so it will know which pager to use.

Best regards,
Juraj Ondrus