# Events

The SplitButton exposes a [`Click()` event](https://www.telerik.com/aspnet-mvc/documentation/api/kendo.mvc.ui.fluent/splitbuttoneventbuilder) that you can handle.

For a complete example on basic SplitButton events, refer to the [demo on using the events of the SplitButton](https://demos.telerik.com/aspnet-mvc/splitbutton/events).

```Razor HtmlHelper
    @(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");
          }
         )
)
```

```JS script
	<script>
		function onClick() {
			alert('SplitButton clicked!')
		}
	</script>
```

## Next Steps

* [Using the SplitButton Events (Demo)](https://demos.telerik.com/aspnet-core/splitbutton/events)

## See Also

* [Using the API of the SplitButton HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/splitbutton/api)
* [SplitButton Server-Side API](https://www.telerik.com/aspnet-mvc/documentation/api/splitbutton)
* [SplitButton Client-Side API](https://docs.telerik.com/kendo-ui/api/ui/splitbutton)
