Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Custom filter and paging View modes: 
User avatar
Member
Member
braxwind-gmail - 1/17/2012 9:45:43 AM
   
Custom filter and paging
Hi.
I have following problem:

I create page with:

1 Custom Filter
1 Query Source (associated with Custom Filter)
1 Basic Repeater (associated with Query Source)
2 Universal Pager (associated with Basic Repeater, Paging mode - PostBack)

Filter can sort result by date or salary, filtering by date and manage size of results items.

User image

It all works, but when I turn to another page, using the Pager - filter stop working. Filter still correctly setted, but query source not use it. And if I set Paging mode - QueryString - filter reinitialised and reset, after any turn to other page.

I need, that filter can save their setting and query source use filter by turning. What can I do for it?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 1/18/2012 2:54:59 AM
   
RE:Custom filter and paging
Hello,


you need to store the values for the filter in some way, for example in the query string like the built-in Product filter. Please see its code in:

~\CMSModules\Ecommerce\Controls\Filters\ProductFilter.ascx.cs

to see how it handles tha values for the filter.


Best regards,
Helena Grulichova

User avatar
Member
Member
braxwind-gmail - 1/18/2012 8:52:57 AM
   
RE:Custom filter and paging
thnx

User avatar
Member
Member
emccall-dataspringinc - 7/2/2013 11:41:29 AM
   
RE:Custom filter and paging
I've looked all through the code & documentation, but cannot figure out exactly how to set these values for the filter (in the "Paging filter options" property of the Product filter). I've tried things like "EnablePaging=true,PageSize=3". Can you please give an example of how to enter these values? Thanks!

Best regards,
Erin McCall

User avatar
Member
Member
kentico_sandroj - 7/2/2013 12:51:06 PM
   
RE:Custom filter and paging
Hi Erin,

Just to make sure we are on the same page, could you please confirm which version/hotfix and specific Web part you are currently running? I do not have those properties available in the Product filter Web part for version 5.X or version 7.X.

Regards,
Sandro

User avatar
Member
Member
emccall-dataspringinc - 7/2/2013 1:02:31 PM
   
RE:Custom filter and paging
Hi Sandro!

I'm on v7.0.28 & am using the Product filter with a Datalist. The properties I mentioned are (as you noted) not in that web part, but I was trying anything I could think of to get paging to work (or even just show up) on my associated (Datalist) control.

Thanks!

User avatar
Member
Member
kentico_sandroj - 7/2/2013 3:30:24 PM
   
RE:Custom filter and paging
Hi Erin,

Thank you for the additional clarification. Both the Datalist and Product Datalist Web part should have the Paging property - if you enable paging in the Datalist and set the page size, then disable paging in the Product Filter Web part, the paging should work as expected. Does that make sense? Please let me know if you have any questions or trouble setting this up.

Regards,
Sandro

User avatar
Member
Member
csnyder-wte - 11/30/2012 9:55:34 AM
   
RE:Custom filter and paging
I had a similar issue, I was able to correct it by setting the paging mode to post back instead of query in the paging control.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 12/2/2012 5:29:18 AM
   
RE:Custom filter and paging
Hi,

Good to know that. It's always possible there is a different way. Thank you for letting us know about this option.

Best regards,
Martin Danko