Defines the fluent API for configuring the Grid ContextMenu events.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class GridContextMenuEventBuilder : EventBuilder
Inheritance: objectEventBuilderGridContextMenuEventBuilder
Inherited Members
Constructors
Initializes a new instance of the GridContextMenuEventBuilder class.
public GridContextMenuEventBuilder(IDictionary<string, object> events)
The GridContextMenu event handlers.
Methods
Fires when a sub menu or the GridContextMenu gets opened and its animation finished.
public GridContextMenuEventBuilder Activate(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:The current GridContextMenuEventBuilder instance for method chaining.
Fires when a sub menu or the GridContextMenu gets opened and its animation finished.
public GridContextMenuEventBuilder Activate(string handler)
The name of the JavaScript function that will handle the activate event.
Returns: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.
public GridContextMenuEventBuilder Close(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns: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.
public GridContextMenuEventBuilder Close(string handler)
The name of the JavaScript function that will handle the close event.
Returns:The current GridContextMenuEventBuilder instance for method chaining.
Fires when a sub menu or the GridContextMenu gets closed and its animation finished.
public GridContextMenuEventBuilder Deactivate(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:The current GridContextMenuEventBuilder instance for method chaining.
Fires when a sub menu or the GridContextMenu gets closed and its animation finished.
public GridContextMenuEventBuilder Deactivate(string handler)
The name of the JavaScript function that will handle the deactivate event.
Returns: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.
public GridContextMenuEventBuilder Open(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns: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.
public GridContextMenuEventBuilder Open(string handler)
The name of the JavaScript function that will handle the open event.
Returns:The current GridContextMenuEventBuilder instance for method chaining.
Fires when a menu item gets selected.
public GridContextMenuEventBuilder Select(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:The current GridContextMenuEventBuilder instance for method chaining.
Fires when a menu item gets selected.
public GridContextMenuEventBuilder Select(string handler)
The name of the JavaScript function that will handle the select event.
Returns:The current GridContextMenuEventBuilder instance for method chaining.