Skip to main content
A newer version of this page is available. .

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

An Int32 value that is 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