New to Telerik UI for WinFormsStart a free 30-day trial

Provides data for the ContextMenuOpening event

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class ContextMenuOpeningEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsContextMenuOpeningEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes a new instance of the GridViewRowEventArgs class.

C#
public ContextMenuOpeningEventArgs(IContextMenuProvider provider, RadDropDownMenu contextMenu, bool cancel)
Parameters:providerIContextMenuProvider

the element for which the context menu will be open

contextMenuRadDropDownMenu

the context menu which is associated with this provider

cancelbool

a value indicating whether to cancel the event

Initializes a new instance of the GridViewRowEventArgs class.

C#
public ContextMenuOpeningEventArgs(IContextMenuProvider provider, RadDropDownMenu contextMenu)
Parameters:providerIContextMenuProvider

the element for which the context menu will be open

contextMenuRadDropDownMenu

the context menu which is associated with this provider

Properties

Gets or sets the context menu which is associated with this provider

C#
public RadDropDownMenu ContextMenu { get; set; }

Gets the element for which the context menu will be open

C#
public IContextMenuProvider ContextMenuProvider { get; }