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

Popup Control

  • 3 minutes to read

The ASPxPopupControl provides the ability to create and use a number of popup windows in your web application. Popup windows are a special type of overlapped temporary window that appear separately from an application's main window, and are typically used to display quick reference information.

The ASPxPopupControl stores its popup windows in a specific ASPxPopupControl.Windows collection. If this collection is empty, the ASPxPopupControl represents a single default popup window. In this case, the default window's appearance and behavior are defined by settings declared at the popup control level. If the ASPxPopupControl.Windows collection is not empty, the popup windows contained in the collection can be customized individually via settings available at the window level.

Popoup Control

This topic lists the features that are unique to ASPxPopupControl.

Control Features

  • ASPxPopupControl stores a collection of popup windows. So, if you need multiple popup windows with the same appearance and behavior settings, you need to place only one ASPxPopupControl component onto your web page.
  • Automatically invoke a popup window on page load, without requiring any user action (e.g., a button click).
  • A popup window can be invoked by clicking, right-clicking or hot-tracking an HTML element (e.g., a button).
  • Select from one of three end-user actions to close the popup window. These actions include: clicking outside the window, moving the mouse pointer away from the element that was previously hot-tracked to make the window visible, and clicking the window's "close" button.
  • The time delay prior to showing or hiding a popup window can be customized. Note that a time delay is only in effect when a popup window is invoked by hot-tracking an HTML element.
  • Specify how a popup window is aligned relative to the HTML source element. You can align a popup window's horizontal (or vertical) border to any horizontal (or vertical) border of an HTML element. You can also align a popup window to the center of an HTML element. If these alignment options are insufficient, you can also specify the horizontal and vertical offsets in pixels.
  • Multiple themes are available, allowing you to apply a consistent appearance to your popup windows.
  • Customizable header and footer content. Headers and footers in the popup window allow you to display a glyph and caption text (or a hyperlink). Note that you can also use templates for more flexible header and footer content customization.

Client-Side Features

  • Client-side events allow you to respond to popup window visibility state changes.
  • You can use client-side API to show and hide popup windows, specify their position relative to other HTML elements and change their content.