ToolBarEventBuilder
Methods
Click(System.String)
Defines the handler of the Click client-side event. Fires when the user clicks a command button.
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().ToolBar()
.Name("toolBar")
.Events(e => e.Click("onClick"))
)
Close(System.String)
Defines the handler of the Close client-side event. Fires when the SplitButton's popup closes.
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().ToolBar()
.Name("toolBar")
.Events(e => e.Close("onClose"))
)
Open(System.String)
Defines the handler of the Open client-side event. Fires when the Split Button's popup opens.
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().ToolBar()
.Name("toolBar")
.Events(e => e.Open("onOpen"))
)
Toggle(System.String)
Defines the handler of the Toggle client-side event. Fires when the user changes the checked state of a toggle button.
For more information see Toggle event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Toggle event.
Example
@(Html.Kendo().ToolBar()
.Name("toolBar")
.Events(e => e.Toggle("onToggle"))
)
OverflowClose(System.String)
Defines the handler of the OverflowClose client-side event. Fires when the overflow popup container is about to close.
For more information see OverflowClose event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the OverflowClose event.
Example
@(Html.Kendo().ToolBar()
.Name("toolBar")
.Events(e => e.OverflowClose("onOverflowClose"))
)
OverflowOpen(System.String)
Defines the handler of the OverflowOpen client-side event. Fires when the overflow popup container is about to open.
For more information see OverflowOpen event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the OverflowOpen event.
Example
@(Html.Kendo().ToolBar()
.Name("toolBar")
.Events(e => e.OverflowOpen("onOverflowOpen"))
)
KendoKeydown(System.String)
Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the ToolBar is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see KendoKeydown event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the KendoKeydown event.