MenuEventBuilder
Methods
Open(System.Func)
Defines the inline handler of the Open client-side event
For more information see Open event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Menu()
.Name("Menu")
.Events(events => events.Open(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)
Open(System.String)
Defines the name of the JavaScript function that will handle the the Open client-side event.
For more information see Open event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Menu()
.Name("Menu")
.Events(events => events.Open("onOpen"))
)
Close(System.Func)
Defines the inline handler of the Close client-side event
For more information see Close event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Menu()
.Name("Menu")
.Events(events => events.Close(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)
Close(System.String)
Defines the name of the JavaScript function that will handle the the Close client-side event.
For more information see Close event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Menu()
.Name("Menu")
.Events(events => events.Close("onClose"))
)
Activate(System.Func)
Defines the inline handler of the Activate client-side event
For more information see Activate event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Menu()
.Name("Menu")
.Events(events => events.Activate(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)
Activate(System.String)
Defines the name of the JavaScript function that will handle the the Activate client-side event.
For more information see Activate event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Menu()
.Name("Menu")
.Events(events => events.Activate("onActivate"))
)
Deactivate(System.Func)
Defines the inline handler of the Deactivate client-side event
For more information see Deactivate event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Menu()
.Name("Menu")
.Events(events => events.Deactivate(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)
Deactivate(System.String)
Defines the name of the JavaScript function that will handle the the Deactivate client-side event.
For more information see Deactivate event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Menu()
.Name("Menu")
.Events(events => events.Deactivate("onDeactivate"))
)
Select(System.Func)
Defines the inline handler of the Select client-side event
For more information see Select event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Menu()
.Name("Menu")
.Events(events => events.Select(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)
Select(System.String)
Defines the name of the JavaScript function that will handle the the Select client-side event.
For more information see Select event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().Menu()
.Name("Menu")
.Events(events => events.Select("onSelect"))
)