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