Popup Control Limitations
- 2 minutes to read
ASPxPopupControl cannot contain another popup element (for example, another ASPxPopupControl, ASPxDockPanel) inside the content collection of any of its windows. If your scenario requires another popup element (e.g., a separate ASPxDockPanel) to appear when clicking the button located in the popup window, you must place this element outside of the first popup control.
Note that the following DevExpress controls provide a popup edit form, which is a built-in ASPxPopupControl control.
This means that you cannot place ASPxPopupControl inside the edit form template of any of these controls if you are using the popup edit form.
The width and height of ASPxPopupControl (specified by the ASPxWebControl.Width and ASPxWebControl.Height properties) cannot be set in percentages. The dimensions must be set in pixels, so that the control can be correctly displayed in all browsers.
ASPxPopupControl contains a built-in ASPxCallbackPanel component. For this reason, if the content of your popup control contains a definition of a javascript function, you might face the Uncaught ReferenceError when trying to call it. See the following KB article for details on how to resolve this issue: How to make JavaScript loaded on a callback accessible in another execution context.
Tip
This also means that if you need to update the content of the popup without refreshing the entire page, there is no need to wrap it in a separate callback panel. Use the client-side ASPxClientPopupControlBase.PerformCallback method for this purpose.