New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring the Grid ContextMenu events.

Definition

Constructors

Initializes a new instance of the GridContextMenuEventBuilder class.

C#
public GridContextMenuEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

The GridContextMenu event handlers.

Methods

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

C#
public GridContextMenuEventBuilder Activate(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridContextMenuEventBuilder

The current GridContextMenuEventBuilder instance for method chaining.

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

C#
public GridContextMenuEventBuilder Activate(string handler)
Parameters:handlerstring

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

Returns:

GridContextMenuEventBuilder

The current GridContextMenuEventBuilder instance for method chaining.

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

C#
public GridContextMenuEventBuilder Close(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridContextMenuEventBuilder

The current GridContextMenuEventBuilder instance for method chaining.

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

C#
public GridContextMenuEventBuilder Close(string handler)
Parameters:handlerstring

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

Returns:

GridContextMenuEventBuilder

The current GridContextMenuEventBuilder instance for method chaining.

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

C#
public GridContextMenuEventBuilder Deactivate(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridContextMenuEventBuilder

The current GridContextMenuEventBuilder instance for method chaining.

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

C#
public GridContextMenuEventBuilder Deactivate(string handler)
Parameters:handlerstring

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

Returns:

GridContextMenuEventBuilder

The current GridContextMenuEventBuilder instance for method chaining.

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

C#
public GridContextMenuEventBuilder Open(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridContextMenuEventBuilder

The current GridContextMenuEventBuilder instance for method chaining.

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

C#
public GridContextMenuEventBuilder Open(string handler)
Parameters:handlerstring

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

Returns:

GridContextMenuEventBuilder

The current GridContextMenuEventBuilder instance for method chaining.

Fires when a menu item gets selected.

C#
public GridContextMenuEventBuilder Select(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridContextMenuEventBuilder

The current GridContextMenuEventBuilder instance for method chaining.

Fires when a menu item gets selected.

C#
public GridContextMenuEventBuilder Select(string handler)
Parameters:handlerstring

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

Returns:

GridContextMenuEventBuilder

The current GridContextMenuEventBuilder instance for method chaining.