Class
GridToolBarSmartBoxToolHistorySettingsBase

Specifies settings.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public abstract class GridToolBarSmartBoxToolHistorySettingsBase : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentGridToolBarSmartBoxToolHistorySettingsBase

Derived Classes: GridToolBarSmartBoxToolAIAssistantHistorySettingsGridToolBarSmartBoxToolSearchHistorySettingsGridToolBarSmartBoxToolSemanticSearchHistorySettings

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.Dispose()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)

Constructors

GridToolBarSmartBoxToolHistorySettingsBase()

Declaration

cs-api-definition
protected GridToolBarSmartBoxToolHistorySettingsBase()

Properties

ItemTemplate

Defines a custom template for rendering individual history items in the Grid toolbar SmartBox history list. The template receives a GridSmartBoxHistoryItemTemplateContext with the query text, timestamp, and other metadata. Use this to customize the appearance of history items, add icons, highlight keywords, or show additional context. If not provided, history items are rendered with default styling showing the query text and timestamp based on TimestampFormat.

Declaration

cs-api-definition
[Parameter]
public RenderFragment<GridSmartBoxHistoryItemTemplateContext> ItemTemplate { get; set; }

Property Value

RenderFragment<GridSmartBoxHistoryItemTemplateContext>

Size

Specifies the maximum number of history items to retain for this Grid toolbar SmartBox mode. When the limit is reached, older items are automatically removed as new searches/prompts are added. Defaults to 5 items. Higher values provide more history but use more memory. Example: Set to 10 for power users who frequently reference past searches, or 3 for simpler interfaces.

Declaration

cs-api-definition
[Parameter]
public int Size { get; set; }

Property Value

int

TimestampFormat

Defines the date/time format for displaying timestamps in history items. Uses standard .NET date format strings. Defaults to "hh:mm tt" (12-hour time with AM/PM). Examples: "HH:mm" for 24-hour time, "MMM dd, yyyy HH:mm" for date and time, "g" for general short format. Timestamps help users identify when previous searches or prompts were performed.

Declaration

cs-api-definition
[Parameter]
public string TimestampFormat { get; set; }

Property Value

string