New to Telerik UI for ASP.NET Core? Download free 30-day trial

SplitButtonEventBuilder

Methods

Click(System.String)

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 event.

Parameters

handler - System.String

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

Example


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

Click(System.Func)

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 event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


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

Open(System.String)

Fires when the menu button is opened.

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().SplitButton()
                   .Name("splitButton")
                   .Events(events => {
                      events.Open("onOpen");
                   })
               )

Open(System.Func)

Fires when the menu button is opened.

For more information see Open event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


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

Close(System.String)

Fires when the menu button is closed.

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().SplitButton()
                   .Name("splitButton")
                   .Events(events => {
                      events.Close("onClose");
                   })
               )

Close(System.Func)

Fires when the menu button is closed.

For more information see Close event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


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

In this article
Not finding the help you need?