Defines the fluent API for configuring the Grid SmartBox events.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class GridSmartBoxEventBuilder : EventBuilder
Inheritance: objectEventBuilderGridSmartBoxEventBuilder
Inherited Members
Constructors
Initializes a new instance of the GridSmartBoxEventBuilder class.
public GridSmartBoxEventBuilder(IDictionary<string, object> events)
The SmartBox event handlers.
Methods
Fired when the user cancels an ongoing AI request in AI Assistant mode.
public GridSmartBoxEventBuilder AiAssistantCancelRequest(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the user cancels an ongoing AI request in AI Assistant mode.
public GridSmartBoxEventBuilder AiAssistantCancelRequest(string handler)
The name of the JavaScript function that will handle the aiAssistantCancelRequest event.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired before the SmartBox sends a prompt request to the AI service in AI Assistant mode.
public GridSmartBoxEventBuilder AiAssistantPromptRequest(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired before the SmartBox sends a prompt request to the AI service in AI Assistant mode.
public GridSmartBoxEventBuilder AiAssistantPromptRequest(string handler)
The name of the JavaScript function that will handle the aiAssistantPromptRequest event.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the AI service returns an error in AI Assistant mode.
public GridSmartBoxEventBuilder AiAssistantResponseError(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the AI service returns an error in AI Assistant mode.
public GridSmartBoxEventBuilder AiAssistantResponseError(string handler)
The name of the JavaScript function that will handle the aiAssistantResponseError event.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the AI service returns a successful response in AI Assistant mode.
public GridSmartBoxEventBuilder AiAssistantResponseSuccess(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the AI service returns a successful response in AI Assistant mode.
public GridSmartBoxEventBuilder AiAssistantResponseSuccess(string handler)
The name of the JavaScript function that will handle the aiAssistantResponseSuccess event.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the SmartBox input loses focus.
public GridSmartBoxEventBuilder Blur(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the SmartBox input loses focus.
public GridSmartBoxEventBuilder Blur(string handler)
The name of the JavaScript function that will handle the blur event.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the SmartBox popup closes.
public GridSmartBoxEventBuilder Close(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the SmartBox popup closes.
public GridSmartBoxEventBuilder Close(string handler)
The name of the JavaScript function that will handle the close event.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the SmartBox input receives focus.
public GridSmartBoxEventBuilder Focus(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the SmartBox input receives focus.
public GridSmartBoxEventBuilder Focus(string handler)
The name of the JavaScript function that will handle the focus event.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the SmartBox popup opens.
public GridSmartBoxEventBuilder Open(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the SmartBox popup opens.
public GridSmartBoxEventBuilder Open(string handler)
The name of the JavaScript function that will handle the open event.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the user performs a search in the SmartBox Search mode.
public GridSmartBoxEventBuilder Search(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the user performs a search in the SmartBox Search mode.
public GridSmartBoxEventBuilder Search(string handler)
The name of the JavaScript function that will handle the search event.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the user performs a search in the SmartBox Semantic Search mode.
public GridSmartBoxEventBuilder SemanticSearch(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.
Fired when the user performs a search in the SmartBox Semantic Search mode.
public GridSmartBoxEventBuilder SemanticSearch(string handler)
The name of the JavaScript function that will handle the semanticSearch event.
Returns:The current GridSmartBoxEventBuilder instance for method chaining.