MenuEventBuilder
Methods
Close(System.String)
Fires before a sub menu gets closed. You can cancel this event to prevent closure.
For more information see Close event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the close event.
RETURNS
Returns the current instance of MenuEventBuilder .
Example
 
             @( Html.Kendo().Menu()
                        .Name("Menu")
                        .Events(events => events.Close("handler"))
            )
             Close(System.Func)
Fires before a sub menu gets closed. You can cancel this event to prevent closure.
For more information see Close event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of MenuEventBuilder .
Example
 
             @( Html.Kendo().Menu()
                       .Name("Menu")
                       .Events(events => events.Close(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             DataBound(System.String)
Fires when the Menu is bound to the set DataSource.
For more information see DataBound event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the dataBound event.
RETURNS
Returns the current instance of MenuEventBuilder .
Example
 
             @( Html.Kendo().Menu()
                        .Name("Menu")
                        .Events(events => events.DataBound("handler"))
            )
             DataBound(System.Func)
Fires when the Menu is bound to the set DataSource.
For more information see DataBound event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of MenuEventBuilder .
Example
 
             @( Html.Kendo().Menu()
                       .Name("Menu")
                       .Events(events => events.DataBound(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             Open(System.String)
Fires before a sub menu gets opened. You can cancel this event to prevent opening the sub menu.
For more information see Open event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the open event.
RETURNS
Returns the current instance of MenuEventBuilder .
Example
 
             @( Html.Kendo().Menu()
                        .Name("Menu")
                        .Events(events => events.Open("handler"))
            )
             Open(System.Func)
Fires before a sub menu gets opened. You can cancel this event to prevent opening the sub menu.
For more information see Open event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of MenuEventBuilder .
Example
 
             @( Html.Kendo().Menu()
                       .Name("Menu")
                       .Events(events => events.Open(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             Activate(System.String)
Fires when a sub menu gets opened and its animation finished.
For more information see Activate event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the activate event.
RETURNS
Returns the current instance of MenuEventBuilder .
Example
 
             @( Html.Kendo().Menu()
                        .Name("Menu")
                        .Events(events => events.Activate("handler"))
            )
             Activate(System.Func)
Fires when a sub menu gets opened and its animation finished.
For more information see Activate event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of MenuEventBuilder .
Example
 
             @( Html.Kendo().Menu()
                       .Name("Menu")
                       .Events(events => events.Activate(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             Deactivate(System.String)
Fires when a sub menu gets closed and its animation finished.
For more information see Deactivate event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the deactivate event.
RETURNS
Returns the current instance of MenuEventBuilder .
Example
 
             @( Html.Kendo().Menu()
                        .Name("Menu")
                        .Events(events => events.Deactivate("handler"))
            )
             Deactivate(System.Func)
Fires when a sub menu gets closed and its animation finished.
For more information see Deactivate event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of MenuEventBuilder .
Example
 
             @( Html.Kendo().Menu()
                       .Name("Menu")
                       .Events(events => events.Deactivate(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             Select(System.String)
Fires when a menu item gets selected.
For more information see Select event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the select event.
RETURNS
Returns the current instance of MenuEventBuilder .
Example
 
             @( Html.Kendo().Menu()
                        .Name("Menu")
                        .Events(events => events.Select("handler"))
            )
             Select(System.Func)
Fires when a menu item gets selected.
For more information see Select event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of MenuEventBuilder .
Example
 
             @( Html.Kendo().Menu()
                       .Name("Menu")
                       .Events(events => events.Select(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )