[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[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]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Collapse]eXpressApp Framework
 [Expand]Fundamentals
 [Expand]Getting Started
 [Collapse]Concepts
  [Expand]Application Solution Components
  [Expand]Business Model Design
  [Expand]Application Model
  [Expand]UI Construction
  [Collapse]Controllers and Actions
   [Expand]Built-in Controllers and Actions
    Controllers
   [Expand]Actions
    Customize Controllers and Actions
    Add Actions to a Pop-up Window
    Dialog Controller
    Logon Form Controllers and Actions
    Determine Why an Action, Controller or Editor is Inactive
    Define the Scope of Controllers and Actions
    Determine an Action's Controller and Identifier
  [Expand]Data Manipulation and Business Logic
  [Expand]Security System
  [Expand]Localization
  [Expand]System Module
  [Expand]Extra Modules
  [Expand]Debugging, Testing and Error Handling
  [Expand]Filtering
  [Expand]Application Life Cycle
 [Expand]Design-Time Features
 [Expand]Deployment
 [Expand]Task-Based Help
  Frequently Asked Questions (FAQ)
 [Expand]API Reference
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Add Actions to a Pop-up Window

A pop-up Window contains a View (Detail or List View) and Actions, like any other Window. The Actions are displayed by the Action Containers of the Window's Template. If you need to add an Action to a pop-up Window, you should add it to the Action Container of the appropriate Template. This topic details what built-in Templates are used to display pop-up Windows, and how to add Actions to their Action Containers. To learn how to display a window (a pop-up or not) from an Action, refer to the Ways to Show a View topic.

The following built-in Templates are used to display pop-up Windows:

Template name

Description

Action Containers

LookupForm

Used in Windows Forms applications for pop-up Windows with List Views. Contains a nested FrameTemplate which actually displays a View and Actions.

The "ObjectsCreation" and "PopupActions" Action Containers of the ButtonsContainer type.

PopupForm

Used in Windows Forms applications for pop-up Windows with Detail Views.

The "PopupActions" Action Container of the ButtonsContainer type.

If you assign this Template to a Window with a List View, it will contain a context menu with the following Action Containers: "ObjectsCreation", "RecordEdit", "View", "Print", and "Export".

Dialog

Used in ASP.NET Web applications for pop-up Windows with any View.

The "ObjectsCreation", "Search", "FullTextSearch", "PopupActions" and "Diagnostic" Action Containers of the HorizontalActionContainer type.

The ButtonsContainer Action Container displays all Action types as a button. However, the button's Click event is handled in different ways for different Action types:

Action Containers get Actions for display from the Application Model's Application | ActionDesign | ActionToContainerMapping | ActionContainer node. For instance, a "PopupActions" ActionContainer gets Actions from the ... | ActionToContainerMapping | PopupActions node. So, add the required Action to the appropriate Action Container to display it in a pop-up Window. To do this, use one of the following techniques:

If you need to add an additional Action Container to a Template which is used to display pop-up Windows, customize this Template. For details, refer to the Template Customization and How to: Create a Custom WinForms Ribbon Template topics.

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