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

Kendo UI smartBox TagHelper GridSmartBoxSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("smart-box", ParentTag = "kendo-grid", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("history", new string[] { "suggestion-template", "history-item-template", "search-settings", "semantic-search-settings", "ai-assistant-settings" })]
[SuppressTagRendering]
public class GridSmartBoxSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent

Inheritance: objectTagHelperTagHelperChildBaseGridSmartBoxSettingsTagHelper

Implements: ITagHelperITagHelperComponentITemplateComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-grid name="grid">
    <smart-box active-mode="SmartBoxActiveMode.Search"></smart-box>
</kendo-grid>

Constructors

Initializes a new instance of the GridSmartBoxSettingsTagHelper class.

C#
public GridSmartBoxSettingsTagHelper()

Properties

Defines the active mode of the SmartBox.

C#
public SmartBoxActiveMode? ActiveMode { get; set; }

Represents the template for a history query in the SmartBox component. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string HistoryItemTemplateHandler { get; set; }

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

C#
public string OnAiAssistantCancelRequest { get; set; }

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

C#
public string OnAiAssistantPromptRequest { get; set; }

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

C#
public string OnAiAssistantResponseError { get; set; }

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

C#
public string OnAiAssistantResponseSuccess { get; set; }

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

C#
public string OnBlur { get; set; }

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

C#
public string OnClose { get; set; }

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

C#
public string OnFocus { get; set; }

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

C#
public string OnOpen { get; set; }

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

C#
public string OnSearch { get; set; }

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

C#
public string OnSemanticSearch { get; set; }

The unified placeholder text of the SmartBox input independent of the activated mode.

C#
public string Placeholder { get; set; }

Represents the template for a suggestion in the SmartBox component AI Assistant mode. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string SuggestionTemplateHandler { get; set; }

A collection of templates that can be used for the component.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

Methods

Adds the current instance to the parent TagHelper, if applicable.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>