# GridContextMenuBuilder

## Methods

### Body(System.Action)

Configures the context menu commands for the grid body.

#### Parameters

##### configurator - System.Action<[GridContextMenuCommandFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridcontextmenucommandfactory)>

The action to configure the context menu commands.

#### RETURNS

The current [GridContextMenuBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridcontextmenubuilder) instance for method chaining.

### Groups(System.Action)

Configures the context menu commands for the grid groups.

#### Parameters

##### configurator - System.Action<[GridContextMenuCommandFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridcontextmenucommandfactory)>

The action to configure the context menu commands.

#### RETURNS

The current [GridContextMenuBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridcontextmenubuilder) instance for method chaining.

### Head(System.Action)

Configures the context menu commands for the grid head.

#### Parameters

##### configurator - System.Action<[GridContextMenuCommandFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridcontextmenucommandfactory)>

The action to configure the context menu commands.

#### RETURNS

The current [GridContextMenuBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridcontextmenubuilder) instance for method chaining.

### Events(System.Action)

Configures the client-side events.

#### Parameters

##### configurator - System.Action<[GridContextMenuEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridcontextmenueventbuilder)>

The client events action.

#### RETURNS

The current [GridContextMenuBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridcontextmenubuilder) instance for method chaining.

#### Example

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