[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Collapse]Docking and Popups
   [Expand]Product Information
   [Expand]Hint Control
   [Expand]Loading Panel
   [Collapse]Popup Control
     ASPxPopupControl Overview
     [Collapse]Popup Windows
       Adding Windows
       Manipulating Windows
       Default Window
     [Expand]Binding to Data
      Appearance Customization
      ASPxPopupControl Limitations
    [Expand]Visual Elements
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Adding Windows

You can manually add popup windows to the ASPxPopupControl control using one of the following methods.

  • Use the ASPxPopupControl Designer.
  • Modify the ASPxPopupControl.Windows collection manually at runtime.
  • Insert the required amount of popup windows directly in the ASPxPopupControl control markup using the Windows section.

ASPxPopupControl control is also capable of being bound to a data source. In this case, the control will automatically create a PopupWindow object for each record in the data source.

Expanded ASPxPopupControl Designer

To invoke the designer, use one of the following approaches.

  • Smart Tag command

    Open the smart tag of your ASPxPopupControl and click the Designer command.

  • Context Menu command

    Right-click the ASPxPopupControl and click Designer.

  • Properties Window command

    In the Properties window, click the Designer command.

In the Windows section, you can click the Add button to add a new popup window and configure its settings using the Item Properties window.

Expanded Adding Windows at Runtime

To add new popup windows at runtime, use one of the following methods of the ASPxPopupControl.Windows collection.

  • The PopupWindowCollection.Add method with several overloads. It creates a new PopupWindow object allowing you to specify several of its settings (depending on the chosen overload) and adds this object to the ASPxPopupControl.Windows collection. This method also returns the newly created object allowing you to perform any operation with it.

  • The Collection<T>.Add and Collection<T>.AddRange methods inherited from the Collection<T> class. These methods require one or more previously created PopupWindow object to be passed as a parameter.

Expanded Modifying the Markup

To add windows manually in the markup, use the Windows markup section. The dx:PopupWindow tag represents a separate PopupWindow object. A simple code example is given below.

Expanded See Also

Is this topic helpful?​​​​​​​