New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring the Grid SmartBox events.

Definition

Constructors

Initializes a new instance of the GridSmartBoxEventBuilder class.

C#
public GridSmartBoxEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

The SmartBox event handlers.

Methods

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

C#
public GridSmartBoxEventBuilder AiAssistantCancelRequest(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

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

C#
public GridSmartBoxEventBuilder AiAssistantCancelRequest(string handler)
Parameters:handlerstring

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

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

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

C#
public GridSmartBoxEventBuilder AiAssistantPromptRequest(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

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

C#
public GridSmartBoxEventBuilder AiAssistantPromptRequest(string handler)
Parameters:handlerstring

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

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

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

C#
public GridSmartBoxEventBuilder AiAssistantResponseError(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

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

C#
public GridSmartBoxEventBuilder AiAssistantResponseError(string handler)
Parameters:handlerstring

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

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

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

C#
public GridSmartBoxEventBuilder AiAssistantResponseSuccess(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

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

C#
public GridSmartBoxEventBuilder AiAssistantResponseSuccess(string handler)
Parameters:handlerstring

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

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

Fired when the SmartBox input loses focus.

C#
public GridSmartBoxEventBuilder Blur(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

Fired when the SmartBox input loses focus.

C#
public GridSmartBoxEventBuilder Blur(string handler)
Parameters:handlerstring

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

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

Fired when the SmartBox popup closes.

C#
public GridSmartBoxEventBuilder Close(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

Fired when the SmartBox popup closes.

C#
public GridSmartBoxEventBuilder Close(string handler)
Parameters:handlerstring

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

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

Fired when the SmartBox input receives focus.

C#
public GridSmartBoxEventBuilder Focus(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

Fired when the SmartBox input receives focus.

C#
public GridSmartBoxEventBuilder Focus(string handler)
Parameters:handlerstring

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

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

Fired when the SmartBox popup opens.

C#
public GridSmartBoxEventBuilder Open(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

Fired when the SmartBox popup opens.

C#
public GridSmartBoxEventBuilder Open(string handler)
Parameters:handlerstring

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

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

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

C#
public GridSmartBoxEventBuilder Search(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

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

C#
public GridSmartBoxEventBuilder Search(string handler)
Parameters:handlerstring

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

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

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

C#
public GridSmartBoxEventBuilder SemanticSearch(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.

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

C#
public GridSmartBoxEventBuilder SemanticSearch(string handler)
Parameters:handlerstring

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

Returns:

GridSmartBoxEventBuilder

The current GridSmartBoxEventBuilder instance for method chaining.