ToolBarEventBuilder
Methods
Click(System.String)
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"))
)
Click(System.Func)
Fires when the user clicks a command button.
For more information see Click event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().ToolBar()
.Name("toolBar")
.Events(events => events.Click(@<text>
function(e) {
// Handle the Click event inline.
}
</text>)
)
)
Close(System.String)
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"))
)
Close(System.Func)
Fires when the SplitButton's popup closes.
For more information see Close event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().ToolBar()
.Name("toolBar")
.Events(events => events.Close(@<text>
function(e) {
// Handle the Close event inline.
}
</text>)
)
)
Open(System.String)
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"))
)
Open(System.Func)
Fires when the Split Button's popup opens.
For more information see Open event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().ToolBar()
.Name("toolBar")
.Events(events => events.Open(@<text>
function(e) {
// Handle the Open event inline.
}
</text>)
)
)
Toggle(System.String)
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"))
)
Toggle(System.Func)
Fires when the user changes the checked state of a toggle button.
For more information see Toggle event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().ToolBar()
.Name("toolBar")
.Events(events => events.Toggle(@<text>
function(e) {
// Handle the Toggle event inline.
}
</text>)
)
)
OverflowClose(System.String)
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"))
)
OverflowClose(System.Func)
Fires when the overflow popup container is about to close.
For more information see OverflowClose event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().ToolBar()
.Name("toolBar")
.Events(events => events.OverflowClose(@<text>
function(e) {
// Handle the OverflowClose event inline.
}
</text>)
)
)
OverflowOpen(System.String)
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"))
)
OverflowOpen(System.Func)
Fires when the overflow popup container is about to open.
For more information see OverflowOpen event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().ToolBar()
.Name("toolBar")
.Events(events => events.OverflowOpen(@<text>
function(e) {
// Handle the OverflowOpen event inline.
}
</text>)
)
)