GridContextMenuBuilder

Methods

Body(System.Action)

Configures the context menu commands for the grid body.

Parameters

configurator - System.Action<GridContextMenuCommandFactory>

The action to configure the context menu commands.

RETURNS

The current GridContextMenuBuilder instance for method chaining.

Groups(System.Action)

Configures the context menu commands for the grid groups.

Parameters

configurator - System.Action<GridContextMenuCommandFactory>

The action to configure the context menu commands.

RETURNS

The current GridContextMenuBuilder instance for method chaining.

Head(System.Action)

Configures the context menu commands for the grid head.

Parameters

configurator - System.Action<GridContextMenuCommandFactory>

The action to configure the context menu commands.

RETURNS

The current GridContextMenuBuilder instance for method chaining.

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<GridContextMenuEventBuilder>

The client events action.

RETURNS

The current GridContextMenuBuilder instance for method chaining.

Example

Razor
 
            @(Html.Kendo().ContextMenu()
                  .Name("ContextMenu")
                  .Events(events => events
                      .Close("onClose")
                  )
            )