Defines the fluent API for configuring the Kendo UI ContextMenu for ASP.NET MVC events.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ContextMenuEventBuilder : EventBuilder
Inheritance: objectEventBuilderContextMenuEventBuilder
Inherited Members
Constructors
Initializes a new instance of the ContextMenuEventBuilder class.
public ContextMenuEventBuilder(IDictionary<string, object> events)
The ContextMenu event handlers.
Methods
Defines the handler of the Activate client-side event. Fires when a sub menu or the ContextMenu gets opened and its animation finished.
public ContextMenuEventBuilder Activate(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ContextMenuEventBuilder .
Defines the handler of the Activate client-side event. Fires when a sub menu or the ContextMenu gets opened and its animation finished.
public ContextMenuEventBuilder Activate(string handler)
The name of the JavaScript function that will handle the Activate event.
Returns:Returns the current instance of ContextMenuEventBuilder .
Defines the handler of the Close client-side event. Fires before a sub menu or the ContextMenu gets closed. You can cancel this event to prevent closure.
public ContextMenuEventBuilder Close(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ContextMenuEventBuilder .
Defines the handler of the Close client-side event. Fires before a sub menu or the ContextMenu gets closed. You can cancel this event to prevent closure.
public ContextMenuEventBuilder Close(string handler)
The name of the JavaScript function that will handle the Close event.
Returns:Returns the current instance of ContextMenuEventBuilder .
Defines the handler of the DataBound client-side event. Fires when the ContextMenu is bound to the set DataSource.
public ContextMenuEventBuilder DataBound(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ContextMenuEventBuilder .
Defines the handler of the DataBound client-side event. Fires when the ContextMenu is bound to the set DataSource.
public ContextMenuEventBuilder DataBound(string handler)
The name of the JavaScript function that will handle the DataBound event.
Returns:Returns the current instance of ContextMenuEventBuilder .
Defines the handler of the Deactivate client-side event. Fires when a sub menu or the ContextMenu gets closed and its animation finished.
public ContextMenuEventBuilder Deactivate(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ContextMenuEventBuilder .
Defines the handler of the Deactivate client-side event. Fires when a sub menu or the ContextMenu gets closed and its animation finished.
public ContextMenuEventBuilder Deactivate(string handler)
The name of the JavaScript function that will handle the Deactivate event.
Returns:Returns the current instance of ContextMenuEventBuilder .
Defines the handler of the Open client-side event. Fires before a sub menu or the ContextMenu gets opened. You can cancel this event to prevent opening the sub menu.
public ContextMenuEventBuilder Open(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ContextMenuEventBuilder .
Defines the handler of the Open client-side event. Fires before a sub menu or the ContextMenu gets opened. You can cancel this event to prevent opening the sub menu.
public ContextMenuEventBuilder Open(string handler)
The name of the JavaScript function that will handle the Open event.
Returns:Returns the current instance of ContextMenuEventBuilder .
Defines the handler of the Select client-side event. Fires when a menu item gets selected.
public ContextMenuEventBuilder Select(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ContextMenuEventBuilder .
Defines the handler of the Select client-side event. Fires when a menu item gets selected.
public ContextMenuEventBuilder Select(string handler)
The name of the JavaScript function that will handle the Select event.
Returns:Returns the current instance of ContextMenuEventBuilder .