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

Manages the context menus in GridVisualElement.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridViewContextMenuManager : IContextMenuManager, IGridViewEventListener, IDisposable

Inheritance: objectGridViewContextMenuManager

Implements: IContextMenuManagerIDisposableIGridViewEventListener

Constructors

Initializes a new instance of the ColumnChooserForm class.

C#
public GridViewContextMenuManager(RadGridViewElement rootElement)
Parameters:rootElementRadGridViewElement

The RadGridViewElement object, associated with this manager.

Properties

The current context menu

C#
public virtual RadDropDownMenu ContextMenu { get; }

Implements: IContextMenuManager.ContextMenu

Gets the associated GridVisualElement instance.

C#
public virtual RadGridViewElement RootElement { get; }

Implements: IContextMenuManager.RootElement

Methods

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Hides the context menu.

C#
public virtual void HideContextMenu()

Implements: IContextMenuManager.HideContextMenu()

Processes the current changed.

C#
protected virtual GridViewEventResult ProcessCurrentChanged(GridViewEvent eventData)
Parameters:eventDataGridViewEvent

The event data.

Returns:

GridViewEventResult

Shows a context menu.

C#
public virtual bool ShowContextMenu(IContextMenuProvider contextMenuProvider, Point location)
Parameters:contextMenuProviderIContextMenuProvider

The context menu provider.

locationPoint

The location in control's coordinates.

Returns:

bool

Returns true if successful.

Implements: IContextMenuManager.ShowContextMenu(IContextMenuProvider, Point)

Shows a context menu.

C#
public virtual bool ShowContextMenu(IContextMenuProvider contextMenuProvider)
Parameters:contextMenuProviderIContextMenuProvider

The context menu provider.

Returns:

bool

Returns true if successful.

Implements: IContextMenuManager.ShowContextMenu(IContextMenuProvider)