ClassGridToolBarSmartBoxToolSearchSettings
Specifies settings.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class GridToolBarSmartBoxToolSearchSettings : GridToolBarSmartBoxToolSearchSettingsBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentGridToolBarSmartBoxToolSearchSettingsBaseGridToolBarSmartBoxToolSearchSettings
Implements:
Inherited Members
Constructors
GridToolBarSmartBoxToolSearchSettings()
Declaration
public GridToolBarSmartBoxToolSearchSettings()
Properties
DebounceDelay
Specifies the delay in milliseconds before triggering a search after the user stops typing. Helps reduce the number of search operations during rapid typing, improving performance. Lower values (e.g., 100ms) provide faster feedback; higher values (e.g., 500ms) reduce server load. Defaults to 300 milliseconds, balancing responsiveness and performance.
Fields
Specifies which grid column fields to include in search operations. Provide field names as strings matching your data model property names (e.g., "ProductName", "Category"). When empty (default), the SmartBox automatically includes all string-type fields in the search. Use this to limit searches to specific columns for better performance or more targeted results. Works with OnSearch event to perform the actual search logic.
OnSearch
Fires when the user performs a search operation in the Grid toolbar SmartBox. The event args (GridSmartBoxSearchEventArgs) contain the search query and allow you to cancel the default behavior. Use this to implement custom search logic, filter grid data, or integrate with external search services. Works with Fields to determine which columns to search and DebounceDelay to control timing.
Declaration
[Parameter]
public EventCallback<GridSmartBoxSearchEventArgs> OnSearch { get; set; }
Property Value
Placeholder
Defines the placeholder text displayed in the search input when empty. Provides guidance to users about what they can search for. Defaults to a localized search prompt. Example: "Search in all columns..." or "Enter search term".
Declaration
[Parameter]
public string Placeholder { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides