Skip to main content

ASPxClientPopupControl.ShowWindowAtElementByID(window, id) Method

Invokes the popup control’s specific window and displays it over an HTML element specified by its unique identifier.

Declaration

ShowWindowAtElementByID(
    window: ASPxClientPopupWindow,
    id: string
): void

Parameters

Name Type Description
window ASPxClientPopupWindow

A ASPxClientPopupWindow object representing the popup window to display.

id string

A string value that specifies the hierarchically qualified identifier of an HTML element relative to whose position the default popup window is invoked.

Remarks

Use the ShowWindowAtElementByID 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 id parameter. The id parameter represents the element’s fully qualified identifier (for server controls this identifier is specified by the ClientID property). For instance, the ShowWindowAtElementByID 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 property.

A call to the ShowWindowAtElementByID method displays a specific popup window at a position defined by the ASPxPopupControl.PopupHorizontalAlign, ASPxPopupControl.PopupHorizontalOffset, ASPxPopupControl.PopupVerticalAlign and ASPxPopupControl.PopupVerticalOffset properties relative to the specified HTML element.

See Also