# SplitButtonEventBuilder

## Methods

### Click(System.String)

Defines the handler of the Click client-side event. Fires when the SplitButton or any if its items is clicked with the mouse, touched on a touch device, or ENTER (or SPACE) is pressed while the SplitButton or an item is focused.

For more information see [Click](https://docs.telerik.com/kendo-ui/api/ui/splitbutton/events/click) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Click event.

#### RETURNS

Returns the current instance of [SplitButtonEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/splitbuttoneventbuilder) .

#### Example

```
 
               @(Html.Kendo().SplitButton()
                   .Name("splitButton")
                   .Events(events => {
                      events.Click("onClick");
                   })
               )
             
```

### Click(System.Func)

Defines the handler of the Click client-side event. Fires when the SplitButton or any if its items is clicked with the mouse, touched on a touch device, or ENTER (or SPACE) is pressed while the SplitButton or an item is focused.

For more information see [Click](https://docs.telerik.com/kendo-ui/api/ui/splitbutton/events/click) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [SplitButtonEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/splitbuttoneventbuilder) .

#### Example

```
 
               @(Html.Kendo().SplitButton()
                   .Name("splitButton")
                   .Events(e => e.Click(
                    	@<text>
                        	function(e) {
                               // event handling code
                           	}
                     	</text>
                     ))
               )
             
```

### Open(System.String)

Defines the handler of the Open client-side event. Fires when the menu button is opened.

For more information see [Open](https://docs.telerik.com/kendo-ui/api/ui/splitbutton/events/open) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Open event.

#### RETURNS

Returns the current instance of [SplitButtonEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/splitbuttoneventbuilder) .

#### Example

```
 
               @(Html.Kendo().SplitButton()
                   .Name("splitButton")
                   .Events(events => {
                      events.Open("onOpen");
                   })
               )
             
```

### Open(System.Func)

Defines the handler of the Open client-side event. Fires when the menu button is opened.

For more information see [Open](https://docs.telerik.com/kendo-ui/api/ui/splitbutton/events/open) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [SplitButtonEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/splitbuttoneventbuilder) .

#### Example

```
 
               @(Html.Kendo().SplitButton()
                   .Name("splitButton")
                   .Events(e => e.Open(
                    	@<text>
                        	function(e) {
                               // event handling code
                           	}
                     	</text>
                     ))
               )
             
```

### Close(System.String)

Defines the handler of the Close client-side event. Fires when the menu button is closed.

For more information see [Close](https://docs.telerik.com/kendo-ui/api/ui/splitbutton/events/close) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Close event.

#### RETURNS

Returns the current instance of [SplitButtonEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/splitbuttoneventbuilder) .

#### Example

```
 
               @(Html.Kendo().SplitButton()
                   .Name("splitButton")
                   .Events(events => {
                      events.Close("onClose");
                   })
               )
             
```

### Close(System.Func)

Defines the handler of the Close client-side event. Fires when the menu button is closed.

For more information see [Close](https://docs.telerik.com/kendo-ui/api/ui/splitbutton/events/close) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [SplitButtonEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/splitbuttoneventbuilder) .

#### Example

```
 
               @(Html.Kendo().SplitButton()
                   .Name("splitButton")
                   .Events(e => e.Close(
                    	@<text>
                        	function(e) {
                               // event handling code
                           	}
                     	</text>
                     ))
               )
             
```
