A newer version of this page is available. Switch to the current version.

ASPxClientPopupControl Class

A client-side equivalent of the ASPxPopupControl control.


declare class ASPxClientPopupControl extends ASPxClientPopupControlBase


The ASPxClientPopupControl object serves as a client-side equivalent of the ASPxPopupControl control.


Use the ClientInstanceName property to programmatically access the client object rendered for the ASPxPopupControl control in a client-side script.


The popup control’s client-side API is enabled if the ASPxPopupControl.EnableClientSideAPI property is set to true, or the ASPxPopupControl.ClientInstanceName property is defined, or any client event is handled.


     function click(s, e) {
<dx:ASPxButton ID="ShowButton" runat="server" Text="Show Popup Window" AutoPostBack="False"/>

<dx:ASPxPopupControl ID="PopupControl" runat="server" ClientInstanceName="ClientPopupControl" LoadContentViaCallback="OnFirstShow" 
          PopupElementID="ShowButton" ShowFooter="True" Width="310px" Height="160px" HeaderText="Updatable content" >
          <dx:PopupControlContentControl ID="PopupControlContentControl" runat="server">
               The content of this popup control was updated at<br /> <b> <%= DateTime.Now.ToLongTimeString() %></b>
          <dx:ASPxButton ID="UpdateButton" runat="server" Text="Update Content" AutoPostBack="False" ClientSideEvents-Click="click" />
See Also