문제

I created a news page in aspx using a repeater with the bellow properties:

  <cms:CMSRepeater ID="CMSRepeater2" runat="server" ClassNames="cms.news" TransformationName="cms.news.preview" 
  SelectedItemTransformationName="cms.news.default" ItemSeparator="<hr/>" Pagesize="20">
             </cms:CMSRepeater>

I tried creating a pagination for this but not achieved. How do I manage pagination with news repeater?

도움이 되었습니까?

해결책

Try using

<cms:CMSRepeaterWithEffect ID="CMSRepeater2" runat="server" ClassNames="cms.news" TransformationName="cms.news.preview" EnablePaging="true"
  SelectedItemTransformationName="cms.news.default" ItemSeparator="<hr/>" Pagesize="20">
             </cms:CMSRepeater>

There are a few differences between the two web parts, but I find paging to just work a lot better on the Repeater With effect. I'm not 100% convinced that the standard CMSRepeater web part even does anything with those properties without being hooked up to a separate paging control in some way, I could be wrong about that last part though.

다른 팁

Have you tried to set the "EnablePaging" propety to true as well as the "PagingMode" property (querystring or postback)?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top