New to Telerik UI for BlazorStart a free 30-day trial

A component that lets you add a debounced search box to a Grid toolbar. Applies search across specified Fields (or all string fields by default), supports size, rounded, and fill mode styling, width control, and ESC to clear. Emits search/clear commands to the toolbar container.

Definition

Namespace:Telerik.Blazor.Components.Common.Grid.SearchBox

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class TableSearchBox : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTableSearchBox

Derived Classes: GridSearchBoxTreeListSearchBox

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()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.InvokeVoidAsyncWithoutAwait(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

C#
public TableSearchBox()

Methods

C#
public override void Dispose()

Overrides: BaseComponent.Dispose()

C#
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters:firstRenderboolReturns:

Task

Overrides: BaseComponent.OnAfterRenderAsync(bool)

Properties

Delay in milliseconds between when user stops typing and when search filtering is applied. Use this to prevent excessive filtering during typing. Default value is 300ms.

C#
[Parameter]
public int DebounceDelay { get; set; }

List of column field names to include in search operations. When empty, all string-type fields are automatically included in search.

C#
[Parameter]
public IList<string> Fields { get; set; }

Controls the background styling of the search box. Use Solid for filled background, Outline for border-only, or Flat for minimal styling.

C#
[Parameter]
public string FillMode { get; set; }

Text displayed inside the search box when it's empty. Use this to provide hints about search functionality to users. Default value is "Search" (localized).

C#
[Parameter]
public string Placeholder { get; set; }

Sets the corner radius of the search box. Use Small, Medium, Large, or Full for different border radius values.

C#
[Parameter]
public string Rounded { get; set; }

Controls the height and padding of the search box. Use Small, Medium, or Large for different sizes.

C#
[Parameter]
public string Size { get; set; }

CSS width value for the search box. Use pixels, percentages, or other CSS units to control the search box width.

C#
[Parameter]
public string Width { get; set; }