ASPxClientPopupControl.ShowWindowAtElement(window, htmlElement) Method
Invokes the popup control’s specific window and displays it over the specified HTML element.
Declaration
ShowWindowAtElement(
window: ASPxClientPopupWindow,
htmlElement: any
): void
Parameters
Name | Type | Description |
---|---|---|
window | ASPxClientPopupWindow | A ASPxClientPopupWindow object representing the popup window to display. |
htmlElement | any | An object specifying the HTML element relative to whose position the default popup window is invoked. |
Remarks
Use the ShowWindowAtElement method on the client side to display a popup window specified by the window parameter at a position which relates to an HTML element specified by the htmlElement parameter. For instance, this method can be used when it’s necessary to display a popup window in response to a specific user action not listed by the ASPxPopupControl.PopupAction property or over a specific HTML element that differs from the element specified by the ASPxPopupControl.PopupElementID (or PopupWindow.PopupElementID) property.
A call to the ShowWindowAtElement method displays the specified popup window at a position defined by the ASPxPopupControl.PopupHorizontalAlign, ASPxPopupControl.PopupHorizontalOffset, ASPxPopupControl.PopupVerticalAlign and ASPxPopupControl.PopupVerticalOffset properties relative to the specified HTML element.