# GridContextMenuEventBuilder

## Methods

### Close(System.String)

Fires before a sub menu or the GridContextMenu gets closed. You can cancel this event to prevent closure.

For more information see [Close](https://docs.telerik.com/kendo-ui/api/ui/gridcontextmenu/events/close) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the close event.

#### RETURNS

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

### Close(System.Func)

Fires before a sub menu or the GridContextMenu gets closed. You can cancel this event to prevent closure.

For more information see [Close](https://docs.telerik.com/kendo-ui/api/ui/gridcontextmenu/events/close) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

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

### Open(System.String)

Fires before a sub menu or the GridContextMenu gets opened. You can cancel this event to prevent opening the sub menu.

For more information see [Open](https://docs.telerik.com/kendo-ui/api/ui/gridcontextmenu/events/open) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the open event.

#### RETURNS

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

### Open(System.Func)

Fires before a sub menu or the GridContextMenu gets opened. You can cancel this event to prevent opening the sub menu.

For more information see [Open](https://docs.telerik.com/kendo-ui/api/ui/gridcontextmenu/events/open) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

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

### Activate(System.String)

Fires when a sub menu or the GridContextMenu gets opened and its animation finished.

For more information see [Activate](https://docs.telerik.com/kendo-ui/api/ui/gridcontextmenu/events/activate) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the activate event.

#### RETURNS

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

### Activate(System.Func)

Fires when a sub menu or the GridContextMenu gets opened and its animation finished.

For more information see [Activate](https://docs.telerik.com/kendo-ui/api/ui/gridcontextmenu/events/activate) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

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

### Deactivate(System.String)

Fires when a sub menu or the GridContextMenu gets closed and its animation finished.

For more information see [Deactivate](https://docs.telerik.com/kendo-ui/api/ui/gridcontextmenu/events/deactivate) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the deactivate event.

#### RETURNS

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

### Deactivate(System.Func)

Fires when a sub menu or the GridContextMenu gets closed and its animation finished.

For more information see [Deactivate](https://docs.telerik.com/kendo-ui/api/ui/gridcontextmenu/events/deactivate) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

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

### Select(System.String)

Fires when a menu item gets selected.

For more information see [Select](https://docs.telerik.com/kendo-ui/api/ui/gridcontextmenu/events/select) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the select event.

#### RETURNS

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

### Select(System.Func)

Fires when a menu item gets selected.

For more information see [Select](https://docs.telerik.com/kendo-ui/api/ui/gridcontextmenu/events/select) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

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