Sunday, March 11, 2012

Is ModalPopup able to show Webpart EditorZone and CatalogZone?

Hi Twiggies,

twiggies:

I'm trying to put my webpart's editorzone and catalog zone into ASP.NET AJAX's ModalPopupExtender,
and the editorzone and catalog zone will popup only when a user clicked on the "Edit" verb on a webpart.

The content inside the Panel which is associated with ModalPopupExtender is invisible by default. So we shall do some changes.

First you should add a fake Button. If when press "Edit" Button , there will be a postback. We suggest that you should add an UpdatePanel to prevent the page from full refreshing. Otherwise , UpdatePanel is not necessary. The structure should be like this

<Panel associated with ModelPopupExtender><UpdatePanel> <WebPart><EditButton></WebPart> </UpdatePanel> </Panel> <Fake Button Text ="Edit" onclick>

function showMPE(){

$get("EditButton's ClientID").click;

$find("ModalPopupExtender's BehaviorID").show();

}

Best regards,

Jonathan


Thank you very much for reply. I'll try it out...

Thank you so much Jonathan

No comments:

Post a Comment