ASPxClientPopupControl Class
A client-side equivalent of the ASPxPopupControl control.
Declaration
declare class ASPxClientPopupControl extends ASPxClientPopupControlBase
Remarks
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.
Note
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.
Example
<script>
function click(s, e) {
ClientPopupControl.PerformCallback();
}
</script>
<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" >
<ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl" runat="server">
The content of this popup control was updated at<br /> <b> <%= DateTime.Now.ToLongTimeString() %></b>
</dx:PopupControlContentControl>
</ContentCollection>
<FooterTemplate>
<dx:ASPxButton ID="UpdateButton" runat="server" Text="Update Content" AutoPostBack="False" ClientSideEvents-Click="click" />
</FooterTemplate>
</dx:ASPxPopupControl>
Inheritance
ASPxClientControlBase
ASPxClientControl
ASPxClientPopupControlBase
ASPxClientPopupControl
See Also