# GridSmartBoxEventBuilder

## Methods

### Search(System.String)

Fired when the user performs a search in the SmartBox Search mode.

For more information see [Search](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/search) event.

#### Parameters

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

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

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### Search(System.Func)

Fired when the user performs a search in the SmartBox Search mode.

For more information see [Search](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/search) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### SemanticSearch(System.String)

Fired when the user performs a search in the SmartBox Semantic Search mode.

For more information see [SemanticSearch](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/semanticsearch) event.

#### Parameters

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

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

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### SemanticSearch(System.Func)

Fired when the user performs a search in the SmartBox Semantic Search mode.

For more information see [SemanticSearch](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/semanticsearch) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### AiAssistantPromptRequest(System.String)

Fired before the SmartBox sends a prompt request to the AI service in AI Assistant mode.

For more information see [AiAssistantPromptRequest](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/aiassistantpromptrequest) event.

#### Parameters

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

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

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### AiAssistantPromptRequest(System.Func)

Fired before the SmartBox sends a prompt request to the AI service in AI Assistant mode.

For more information see [AiAssistantPromptRequest](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/aiassistantpromptrequest) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### AiAssistantResponseSuccess(System.String)

Fired when the AI service returns a successful response in AI Assistant mode.

For more information see [AiAssistantResponseSuccess](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/aiassistantresponsesuccess) event.

#### Parameters

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

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

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### AiAssistantResponseSuccess(System.Func)

Fired when the AI service returns a successful response in AI Assistant mode.

For more information see [AiAssistantResponseSuccess](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/aiassistantresponsesuccess) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### AiAssistantResponseError(System.String)

Fired when the AI service returns an error in AI Assistant mode.

For more information see [AiAssistantResponseError](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/aiassistantresponseerror) event.

#### Parameters

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

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

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### AiAssistantResponseError(System.Func)

Fired when the AI service returns an error in AI Assistant mode.

For more information see [AiAssistantResponseError](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/aiassistantresponseerror) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### AiAssistantCancelRequest(System.String)

Fired when the user cancels an ongoing AI request in AI Assistant mode.

For more information see [AiAssistantCancelRequest](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/aiassistantcancelrequest) event.

#### Parameters

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

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

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### AiAssistantCancelRequest(System.Func)

Fired when the user cancels an ongoing AI request in AI Assistant mode.

For more information see [AiAssistantCancelRequest](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/aiassistantcancelrequest) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### Open(System.String)

Fired when the SmartBox popup opens.

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

#### Parameters

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

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

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### Open(System.Func)

Fired when the SmartBox popup opens.

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

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### Close(System.String)

Fired when the SmartBox popup closes.

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

#### Parameters

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

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

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### Close(System.Func)

Fired when the SmartBox popup closes.

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

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### Focus(System.String)

Fired when the SmartBox input receives focus.

For more information see [Focus](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/focus) event.

#### Parameters

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

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

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### Focus(System.Func)

Fired when the SmartBox input receives focus.

For more information see [Focus](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/focus) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### Blur(System.String)

Fired when the SmartBox input loses focus.

For more information see [Blur](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/blur) event.

#### Parameters

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

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

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.

### Blur(System.Func)

Fired when the SmartBox input loses focus.

For more information see [Blur](https://docs.telerik.com/kendo-ui/api/ui/gridsmartbox/events/blur) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

The current [GridSmartBoxEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxeventbuilder) instance for method chaining.
