Skip to main content

ASPxClientPopupMenu.GetCurrentPopupElementIndex Method

Returns an index of the object that invoked the popup menu within the ASPxPopupMenu.PopupElementID list.

Declaration

GetCurrentPopupElementIndex(): number

Returns

Type Description
number

The zero-based position of the object’s ID within the PopupElementID list.

Remarks

The ASPxPopupMenu contains IDs of objects that can invoke a popup menu within the ASPxPopupMenu.PopupElementID property. Use the GetCurrentPopupElementIndex method to get the index of the last object that invoked the menu within the PopupElementID list. If the menu has not been shown yet, the method returns the 0 (zero).

You can get the object that invoked the popup menu using the ASPxClientPopupMenu.GetCurrentPopupElement method.

See Also