Update Unipager if BasicReapeater was updated

Iman Emran asked on January 14, 2016 14:43

Hello,

I have a PagesDataSource, BasicRepeater, Filter (with a custom filter) and two Unipagers (one of them on the top of BasicRepeater's Zone and another one on the bottom of it) web parts in the different Zones. All web parts have their own UpdatePanel. On the code behind of custom filter I've written a piece of code to update the BasicRepeater according to the filter has been selected on postback.

// Get the webpart repeater which we want filter it
CMSAbstractWebPart rptTarget = RequestStockHelper.GetItem("productsList") as CMSAbstractWebPart;

if (rptTarget != null && rptTarget.UseUpdatePanel)
{
    rptTarget.ReloadData();
    rptTarget.UpdatePanel.Update();
}

Now I want to update also both Unipagers of BasicRepeater.

Can anyone help me to find a way for accessing Unipagers of BasicRepeater to update them?

Recent Answers


Dawid Jachnik answered on January 14, 2016 15:07

Hello,

Did you tried to remove the updatepanel from these web parts and enable the Use update panel on parent zone, but with this you will need to rebuild you zones layout.

0 votesVote for this answer Mark as a Correct answer

Iman Emran answered on January 14, 2016 22:23 (last edited on January 14, 2016 22:24)

No, I can't do that because my page layout don't let me and I can't change it.

Please someone give me a better solution for my problem!

Thanks

0 votesVote for this answer Mark as a Correct answer

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