DropDownButtonEventBuilder
Methods
Click(System.String)
Fires when the DropDownButton or any if its items is clicked with the mouse, touched on a touch device, or ENTER (or SPACE) is pressed while the DropDownButton or an item is focused.
For more information see Click event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the click event.
Example
@(Html.Kendo().DropDownButton()
.Name("dropdownbutton")
.Events(events => events.Click("onClick"))
)
Click(System.Func)
Fires when the DropDownButton or any if its items is clicked with the mouse, touched on a touch device, or ENTER (or SPACE) is pressed while the DropDownButton or an item is focused.
For more information see Click event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().DropDownButton()
.Name("dropdownbutton")
.Events(events => events.Click(
@%lt;text>
function() {
// Handle event.
}
</text>
)
)
)
Open(System.String)
Fires when the DropDownButton popup menu is opened.
For more information see Open event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the open event.
Example
@(Html.Kendo().DropDownButton()
.Name("dropdownbutton")
.Events(events => events.Open("onOpen"))
)
Open(System.Func)
Fires when the DropDownButton popup menu button is opened.
For more information see Open event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().DropDownButton()
.Name("dropdownbutton")
.Events(events => events.Open(
@%lt;text>
function() {
// Handle event.
}
</text>
)
)
)
Close(System.String)
Fires when the DropDownButton popup menu is closed.
For more information see Close event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the close event.
Example
@(Html.Kendo().DropDownButton()
.Name("dropdownbutton")
.Events(events => events.Close("onClose"))
)
Close(System.Func)
Fires when the DropDownButton popup menu is closed.
For more information see Close event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().DropDownButton()
.Name("dropdownbutton")
.Events(events => events.Close(
@%lt;text>
function() {
// Handle event.
}
</text>
)
)
)