Universal pager Error

Iman Emran asked on April 17, 2016 10:31

Hi,

I have a problem with two Universal pager web parts when I set their Paging mode to Postback.

I created a test page in Kentico 8.2 E-commerce Site under the Product page with these webparts and configurations:

1. Pages data source
-------------------------------------------------
 Web part control ID:   wPDS
                Path:   /Products/%
 ORDER BY Expression:   SKUName ASC
     WHERE condition:   NodeSKUID IS NOT NULL

and

2. Universal pager 1
-------------------------------------------------
 Web part control ID:   wUPTop
 Target control name:   wPL
           Page size:   2
         Paging mode:   PostBack

and

3. Basic Repeater
-------------------------------------------
 Web part control ID:   wPL
    Data source name:   wPDS
 Transformation name:   EcommerceSite.Transformations.ProductPreview

and

4. Universal pager 2
-------------------------------------------
 Web part control ID:   wUPBottom
 Target control name:   wPL
           Page size:   2
         Paging mode:   PostBack

Now when I set these configurations with this sequence of web parts, the second Universal pager web part not working correctly and only the first one works.

What is the problem and how can I solve it?

Thanks

Recent Answers


Trevor Fayas answered on April 18, 2016 18:04

If I would take a guess, doing it via postback will execute some logic on the control itself, so since you have 2 separate pagers, the postback is only happening on the one that you click (top or bottom). This is most likely the issue.

You may have to switch to a non post back method so it executes on the URL parameter logic that both can process, or if you must do postback, you may need to rig up a way to have 1 control, and some javascript that copies the HTML of the 1 control, and then overwrite the 'click' events for the copied pager to click it's source counterpart (ex you have the top pager as the real one, then using javascript copy the top pager html to the bottom, and when you click a link on the bottom it instead clicks the correct link on the top pager).

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.