Class
GridViewContextMenuManager

Manages the context menus in GridVisualElement.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class GridViewContextMenuManager : IContextMenuManager, IGridViewEventListener, IDisposable

Inheritance: objectGridViewContextMenuManager

Implements: IContextMenuManagerIDisposableIGridViewEventListener

Constructors

GridViewContextMenuManager(RadGridViewElement)

Initializes a new instance of the ColumnChooserForm class.

Declaration

cs-api-definition
public GridViewContextMenuManager(RadGridViewElement rootElement)

Parameters

rootElement

RadGridViewElement

The RadGridViewElement object, associated with this manager.

Properties

ContextMenu

The current context menu

Declaration

cs-api-definition
public virtual RadDropDownMenu ContextMenu { get; }

Property Value

RadDropDownMenu

Implements IContextMenuManager.ContextMenu

RootElement

Gets the associated GridVisualElement instance.

Declaration

cs-api-definition
public virtual RadGridViewElement RootElement { get; }

Property Value

RadGridViewElement

Implements IContextMenuManager.RootElement

Methods

Dispose()

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

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

HideContextMenu()

Hides the context menu.

Declaration

cs-api-definition
public virtual void HideContextMenu()

Implements IContextMenuManager.HideContextMenu()

ProcessCurrentChanged(GridViewEvent)

Processes the current changed.

Declaration

cs-api-definition
protected virtual GridViewEventResult ProcessCurrentChanged(GridViewEvent eventData)

Parameters

eventData

GridViewEvent

The event data.

Returns

GridViewEventResult

ShowContextMenu(IContextMenuProvider)

Shows a context menu.

Declaration

cs-api-definition
public virtual bool ShowContextMenu(IContextMenuProvider contextMenuProvider)

Parameters

contextMenuProvider

IContextMenuProvider

The context menu provider.

Returns

bool

Returns true if successful.

Implements IContextMenuManager.ShowContextMenu(IContextMenuProvider)

ShowContextMenu(IContextMenuProvider, Point)

Shows a context menu.

Declaration

cs-api-definition
public virtual bool ShowContextMenu(IContextMenuProvider contextMenuProvider, Point location)

Parameters

contextMenuProvider

IContextMenuProvider

The context menu provider.

location

Point

The location in control's coordinates.

Returns

bool

Returns true if successful.

Implements IContextMenuManager.ShowContextMenu(IContextMenuProvider, Point)