Repeaters not working with ajax update panel

Miguel Vieira asked on March 12, 2015 18:18

We are building a site and we are having problems with the update panels.Image Text

We replicated the problem within the Corporate Site. In the Products/Smartphone page we enabled the update panel in the Product Filter and Product list (repeater) and removed the "Filter by Query" option in the Product Filter so it postbacks.

When we try to filter the repeater does not refresh, but if we remove the update panels it works.

It's as if the repeter's update panel is not being registered to update always, because we can see the filter's update panel in the ouput debug.

Can you confirm the repeater web parts with update panel enabled works with a product filter web part also enabled with an update panel?

Correct Answer

Brenden Kehren answered on March 13, 2015 13:16

Not sure you can add a "trigger" webpart, I've havent seen anything like that. You might just go into your layout then and add a single <asp:updatepanel> around both of those zones.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on March 13, 2015 03:23

The filter and the repeater have to be in the same update panel or you have to specify some triggers in code. Your best bet to get them to work together would be to wrap them in a webpart zone and set the update pane on the webpart zone.

1 votesVote for this answer Mark as a Correct answer

Miguel Vieira answered on March 13, 2015 11:28

Thank you for the help.

In our website we can't add the update panel to webpart zone because the Product Filter and the Repeater are in different webpart zones.

Can we add triggers to the update panel on the repeater?

0 votesVote for this answer Mark as a Correct answer

Miguel Vieira answered on March 13, 2015 15:33

Again, thank you. We addded an Updatepanel in the template and it works just like we wanted.

0 votesVote for this answer Mark as a Correct answer

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