Pergunta

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?

Foi útil?

Solução

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.

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top