ASPxClientPopupMenu.RefreshPopupElementConnection Method
Refreshes the connection between the ASPxPopupMenu and the popup element.
Declaration
RefreshPopupElementConnection(): void
The RefreshPopupElementConnection method is useful to restore the connection between the ASPxPopupMenu and the popup element on the page, if, for example, the popup element is updated within the update panel.
Example
The following example demonstrates how to use the ASPxClientPopupControl.RefreshPopupElementConnection method.
protected void ASPxPopupControl1_PopupElementResolve(object sender,
DevExpress.Web.ControlResolveEventArgs e) {
e.ResolvedControl = ASPxHyperLink1;
}
<dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False"
Text="Send Callback" Width="152px">
<ClientSideEvents Click="function(s, e) {
cp1.PerformCallback();
}" />
</dx:ASPxButton>
<dx:ASPxCallbackPanel ID="ASPxCallbackPanel1" runat="server" Width="200px"
ClientInstanceName="cp1">
<PanelCollection>
<dx:PanelContent runat="server">
<dx:ASPxHyperLink ID="ASPxHyperLink1" runat="server" BackColor="#C0C0FF"
ClientInstanceName="ASPxHyperLink1"
Text="Open popup control">
</dx:ASPxHyperLink>
</dx:PanelContent>
</PanelCollection>
<ClientSideEvents EndCallback="function(s, e) {
pc1.RefreshPopupElementConnection();
}" />
</dx:ASPxCallbackPanel>
<dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" CloseAction="CloseButton"
PopupElementID="ASPxHyperLink1"
OnPopupElementResolve="ASPxPopupControl1_PopupElementResolve"
ClientInstanceName="pc1">
<ContentCollection>
<dx:PopupControlContentControl runat="server">
ASPxPopupControl</dx:PopupControlContentControl>
</ContentCollection>
</dx:ASPxPopupControl>
See Also