ContextMenu Property

Event fired when the context menu is being shown for one of the grid's elements. Corresponds to the browser's ContextMenu event. This is a cancelable event. The event handler gets two parameters: sender and args. The sender is a reference to the grid's client side object; the browser's event object can be obtained off the args parameter: args.get_browserEvent();
To cancel this event call args.set_cancel(true);
To determine which object type the event has happenned for call args.get_type();
Available types of objects are: "cell", "row", "header", "footer".
To get reference to the corresponding client side object call args.get_item();
Public Property ContextMenu As String
public string ContextMenu {get; set;}
This event is always fired last in the bubbling queue. If any custom code or grid behavior handles and cancels this same event, this handler may not be invoked. If any custom code or grid behavior handles the same event off a child element, canceling this event does not guarantee to prevent default action.
Actual sequence of events may vary by the browser. Handling this event automatically cancels default browser's context menu in Internet Explorer.

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also