# ToolCallEventBuilder

## Methods

### ExpandedChange(System.String)

Defines the handler of the ExpandedChange client-side event. Fired when the user clicks the header to toggle the expanded state. Calling e.preventDefault() prevents the toggle from taking effect.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [ExpandedChange](https://docs.telerik.com/kendo-ui/api/ui/toolcall/events/expandedchange) event.

#### Parameters

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

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

#### RETURNS

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

### ExpandedChange(System.Func)

Defines the handler of the ExpandedChange client-side event. Fired when the user clicks the header to toggle the expanded state. Calling e.preventDefault() prevents the toggle from taking effect.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [ExpandedChange](https://docs.telerik.com/kendo-ui/api/ui/toolcall/events/expandedchange) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

### Action(System.String)

Defines the handler of the Action client-side event. Fired when the user clicks the approve or reject button in the approval UI. Only fires when state is "awaitingApproval".The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [Action](https://docs.telerik.com/kendo-ui/api/ui/toolcall/events/action) event.

#### Parameters

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

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

#### RETURNS

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

### Action(System.Func)

Defines the handler of the Action client-side event. Fired when the user clicks the approve or reject button in the approval UI. Only fires when state is "awaitingApproval".The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [Action](https://docs.telerik.com/kendo-ui/api/ui/toolcall/events/action) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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