Back to Devexpress

BootstrapPopupControl Class

aspnetbootstrap-devexpress-dot-web-dot-bootstrap-ad6a7202.md

latest3.8 KB
Original Source

BootstrapPopupControl Class

A web control that enables you to add the popup window functionality to your web application.

Namespace : DevExpress.Web.Bootstrap

Assembly : DevExpress.Web.Bootstrap.v25.2.dll

NuGet Package : DevExpress.Web.Bootstrap

Declaration

csharp
[DXClientDocumentationProviderWeb("BootstrapPopupControl")]
[ToolboxTabName("DX.25.2: Bootstrap Controls")]
public class BootstrapPopupControl :
    ASPxPopupControl,
    ISimpleRenderControl,
    IBootstrapPopupCssClassesOwner
vb
<ToolboxTabName("DX.25.2: Bootstrap Controls")>
<DXClientDocumentationProviderWeb("BootstrapPopupControl")>
Public Class BootstrapPopupControl
    Inherits ASPxPopupControl
    Implements ISimpleRenderControl,
               IBootstrapPopupCssClassesOwner

Remarks

Note

The BootstrapPopupControl control provides you with comprehensive client-side functionality implemented using JavaScript code:

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

Example

This example demonstrates the basic functionality of the Popup Control.

  • Initialize a new instance of the BootstrapPopupControl class.
  • Populate the BootstrapLayoutItem.ContentCollection array with required content controls.

The image below shows the result:

aspx
<div id="default-popup-control-1" class="popup-target popup-target-sm"></div>
<dx:BootstrapPopupControl runat="server" ShowOnPageLoad="true" PopupElementCssSelector="#default-popup-control-1"
    PopupHorizontalAlign="Center" PopupVerticalAlign="Middle" Width="500px" CloseAction="CloseButton">
    <ContentCollection>
        <dx:ContentControl>
            ...
        </dx:ContentControl>
    </ContentCollection>
</dx:BootstrapPopupControl>

Inheritance

Object Control WebControl ASPxWebControlBase ASPxWebControl ASPxDataWebControlBase ASPxDataWebControl ASPxPopupControlBase ASPxPopupControl BootstrapPopupControl

See Also

BootstrapPopupControl Members

DevExpress.Web.Bootstrap Namespace