Events
The SplitButton exposes a Click()
event that you can handle.
For a complete example on basic SplitButton events, refer to the demo on using the events of the SplitButton.
@(Html.Kendo().SplitButton()
.Name("sampleSplitButton")
.Text("Sample Split Button")
.Events(ev => ev.Click("onClick"))
.Items(items =>
{
items.Add().Id("item1").Text("Action 1");
items.Add().Id("item2").Text("Action 2");
}
)
)
<kendo-splitbutton name="sampleSplitButton" text="Sample Split Button" on-click="onClick">
<splitbutton-items>
<item id="item1" text="Action 1"></item>
<item id="item2" text="Action 2"></item>
</splitbutton-items>
</kendo-splitbutton>
<script>
function onClick() {
alert('SplitButton clicked!')
}
</script>