ASPxClientPopupControl.UpdateWindowPosition(window) Method

Updates the specified popup window’s position, to correctly align it at either the specified element, or the center of the browser’s window.


    window: ASPxClientPopupWindow
): void


Name Type Description
window ASPxClientPopupWindow

An ASPxClientPopupWindow object that specifies the required popup window.


The UpdateWindowPosition method is in effect if a popup window is aligned either at a specific element explicitly defined via the PopupWindow.PopupElementID property or at the browser window’s center (the popup control’s ASPxPopupControl.PopupHorizontalAlign and ASPxPopupControl.PopupVerticalAlign properties are set to PopupHorizontalAlign.WindowCenter and PopupVerticalAlign.WindowCenter, respectively).

The UpdateWindowPosition method allows you to correctly reposition a specific popup window when the popup window (or the browser window) is automatically resized, without hiding it, to accommodate its changed content.

See Also