ASPX templates
Version 3.x > ASPX templates > VIEW ALL option on paging View modes: 
User avatar
Member
Member
d.goss-galleriesfashions.co - 1/2/2010 4:54:09 AM
   
VIEW ALL option on paging
Hi, I'm using 3.1a ecommerce. I have a repeater for displaying products, with paging enabled at a page size of 30. So, for a crude example, a category containing 90 products will be split into 3 pages. However, many users will want to, as you can on lots of websites, click a button to 'View All' and see all 90 products on the page at once. Is there a way of doing this, like perhaps a built-in .NET function?

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 1/12/2010 4:50:29 AM
   
RE:VIEW ALL option on paging
Hello,

I would recommend creating copy of CMSRepeater web part, into this copy add 'View All' button and in OnClick event handler disable paging of repeater.

Best Regards,

Martin Dobsicek

User avatar
Member
Member
d.goss-galleriesfashions.co - 1/12/2010 5:00:03 AM
   
RE:VIEW ALL option on paging
OK thanks.

Although, would rather do it without JavaScript. Is there a variant of the URL argument that will disable the paging? So, for instance, instead of

/Boss-Orange.aspx?Page=2


could there be something like

/Boss-Orange.aspx?Page=0

or
/Boss-Orange.aspx?NoPaging


PS neither of these work, I tried!

Thanks


User avatar
Kentico Developer
Kentico Developer
kentico_martind - 1/20/2010 7:24:03 AM
   
RE:VIEW ALL option on paging
Hello,

Regrettably, there is no such URL argument. But please note that the procedure I've suggested in my previous post doesn't use JavaScript.

Best Regards,

Martin Dobsicek

User avatar
Member
Member
16vMonkey - 8/13/2012 5:06:56 AM
   
RE:VIEW ALL option on paging
i'm looking for the same functionality, but am not well versed in code behind. I have created a copy of the UniPager Web Part but would appreciate it if you could shed some more light on how to disable the pager from OnClick?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 8/20/2012 4:59:10 AM
   
RE:VIEW ALL option on paging
Hello,

the instructions work only for CMSRepeater. Do you use the repeater with Universal pager? You added the "All" button to the Universal pager? If so, please use the new (cloned) Universal pager with Basic repeater and Documents data source (see: Using datasource web parts). Then you can place this code to the 'onclick' method to load all items:

pagerElem.PagedControl.PagerForceNumberOfResults = pagerElem.DataSourceItemsCount;


Best regards,
Helena Grulichova