Skip to main content

ASPxClientPopupControl.GetWindowCurrentPopupElement(window) Method

Returns an object that invoked the specified popup window.

Declaration

GetWindowCurrentPopupElement(
    window: ASPxClientPopupWindow
): any

Parameters

Name Type Description
window ASPxClientPopupWindow

An ASPxClientPopupWindow object that specifies the required popup window.

Returns

Type Description
any

An object that invoked the specified window.

Remarks

The ASPxPopupControl contains IDs of objects that can invoke a popup window within the window’s PopupWindow.PopupElementID property. Use the GetWindowCurrentPopupElement method to get the last object that invoked the window. If the window has not been shown yet, the method returns the first element in PopupElementID list.

You can get the popup element’s index within the list by using the ASPxClientPopupControl.GetWindowCurrentPopupElementIndex method.

To get the element that invoked a default window, use the ASPxClientPopupControl.GetCurrentPopupElement method.

See Also