# ToolBarEventBuilder

## Methods

### Click(System.String)

Defines the handler of the Click client-side event. Fires when the user clicks a command button.

For more information see [Click](https://docs.telerik.com/kendo-ui/api/ui/toolbar/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 [ToolBarEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/toolbareventbuilder) .

#### Example

```
 
            @(Html.Kendo().ToolBar()
                    .Name("toolBar")
                    .Events(e => e.Click("onClick"))
            )
             
```

### Click(System.Func)

Defines the handler of the Click client-side event. Fires when the user clicks a command button.

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

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @(Html.Kendo().ToolBar()
               .Name("toolBar")
               .Events(events => events.Click(@<text>
                    function(e) {
                        // Handle the Click event inline.
                    }
                    </text>)
                )
             )
             
```

### Close(System.String)

Defines the handler of the Close client-side event. Fires when the SplitButton's popup closes.

For more information see [Close](https://docs.telerik.com/kendo-ui/api/ui/toolbar/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 [ToolBarEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/toolbareventbuilder) .

#### Example

```
 
            @(Html.Kendo().ToolBar()
                    .Name("toolBar")
                    .Events(e => e.Close("onClose"))
            )
             
```

### Close(System.Func)

Defines the handler of the Close client-side event. Fires when the SplitButton's popup closes.

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

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @(Html.Kendo().ToolBar()
               .Name("toolBar")
               .Events(events => events.Close(@<text>
                    function(e) {
                        // Handle the Close event inline.
                    }
                    </text>)
                )
             )
             
```

### Open(System.String)

Defines the handler of the Open client-side event. Fires when the Split Button's popup opens.

For more information see [Open](https://docs.telerik.com/kendo-ui/api/ui/toolbar/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 [ToolBarEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/toolbareventbuilder) .

#### Example

```
 
            @(Html.Kendo().ToolBar()
                    .Name("toolBar")
                    .Events(e => e.Open("onOpen"))
            )
             
```

### Open(System.Func)

Defines the handler of the Open client-side event. Fires when the Split Button's popup opens.

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

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @(Html.Kendo().ToolBar()
               .Name("toolBar")
               .Events(events => events.Open(@<text>
                    function(e) {
                        // Handle the Open event inline.
                    }
                    </text>)
                )
             )
             
```

### Toggle(System.String)

Defines the handler of the Toggle client-side event. Fires when the user changes the checked state of a toggle button.

For more information see [Toggle](https://docs.telerik.com/kendo-ui/api/ui/toolbar/events/toggle) event.

#### Parameters

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

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

#### RETURNS

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

#### Example

```
 
            @(Html.Kendo().ToolBar()
                    .Name("toolBar")
                    .Events(e => e.Toggle("onToggle"))
            )
             
```

### Toggle(System.Func)

Defines the handler of the Toggle client-side event. Fires when the user changes the checked state of a toggle button.

For more information see [Toggle](https://docs.telerik.com/kendo-ui/api/ui/toolbar/events/toggle) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @(Html.Kendo().ToolBar()
               .Name("toolBar")
               .Events(events => events.Toggle(@<text>
                    function(e) {
                        // Handle the Toggle event inline.
                    }
                    </text>)
                )
             )
             
```

### OverflowClose(System.String)

Defines the handler of the OverflowClose client-side event. Fires when the overflow popup container is about to close.

For more information see [OverflowClose](https://docs.telerik.com/kendo-ui/api/ui/toolbar/events/overflowclose) event.

#### Parameters

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

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

#### RETURNS

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

#### Example

```
 
            @(Html.Kendo().ToolBar()
                    .Name("toolBar")
                    .Events(e => e.OverflowClose("onOverflowClose"))
            )
             
```

### OverflowClose(System.Func)

Defines the handler of the OverflowClose client-side event. Fires when the overflow popup container is about to close.

For more information see [OverflowClose](https://docs.telerik.com/kendo-ui/api/ui/toolbar/events/overflowclose) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @(Html.Kendo().ToolBar()
               .Name("toolBar")
               .Events(events => events.OverflowClose(@<text>
                    function(e) {
                        // Handle the OverflowClose event inline.
                    }
                    </text>)
                )
             )
             
```

### OverflowOpen(System.String)

Defines the handler of the OverflowOpen client-side event. Fires when the overflow popup container is about to open.

For more information see [OverflowOpen](https://docs.telerik.com/kendo-ui/api/ui/toolbar/events/overflowopen) event.

#### Parameters

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

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

#### RETURNS

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

#### Example

```
 
            @(Html.Kendo().ToolBar()
                    .Name("toolBar")
                    .Events(e => e.OverflowOpen("onOverflowOpen"))
            )
             
```

### OverflowOpen(System.Func)

Defines the handler of the OverflowOpen client-side event. Fires when the overflow popup container is about to open.

For more information see [OverflowOpen](https://docs.telerik.com/kendo-ui/api/ui/toolbar/events/overflowopen) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @(Html.Kendo().ToolBar()
               .Name("toolBar")
               .Events(events => events.OverflowOpen(@<text>
                    function(e) {
                        // Handle the OverflowOpen event inline.
                    }
                    </text>)
                )
             )
             
```

### KendoKeydown(System.String)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the ToolBar is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [KendoKeydown](https://docs.telerik.com/kendo-ui/api/ui/toolbar/events/kendokeydown) event.

#### Parameters

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

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

#### RETURNS

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

### KendoKeydown(System.Func)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the ToolBar is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [KendoKeydown](https://docs.telerik.com/kendo-ui/api/ui/toolbar/events/kendokeydown) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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