ClassGridToolBarSmartBoxToolHistorySettingsBase
Specifies settings.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public abstract class GridToolBarSmartBoxToolHistorySettingsBase : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentGridToolBarSmartBoxToolHistorySettingsBase
Derived Classes:
Implements:
Inherited Members
Constructors
GridToolBarSmartBoxToolHistorySettingsBase()
Declaration
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
[Parameter]
public RenderFragment<GridSmartBoxHistoryItemTemplateContext> ItemTemplate { get; set; }
Property Value
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.
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
[Parameter]
public string TimestampFormat { get; set; }
Property Value