Class FilteringEventArgs
Event argument for filter/search operations triggered by user input in Syncfusion dropdowns—such as ComboBox, MultiSelect, or ListBox.
Namespace: Syncfusion.Blazor.DropDowns
Assembly: Syncfusion.Blazor.dll
Syntax
public class FilteringEventArgs : Object
Remarks
FilteringEventArgs lets you implement custom filtering, cancel built-in logic, or capture the query for analytics in typeahead scenarios.
Examples
void OnFiltering(FilteringEventArgs args)
{
if (args.Text is string filter && filter.Length < 2) args.Cancel = true;
if (args.PreventDefaultAction) LogCustomFilter(filter);
}
Constructors
FilteringEventArgs()
Declaration
public FilteringEventArgs()
Properties
BaseEventArgs
[Obsolete] Legacy browser event for historic filtering API. Do not use.
Declaration
public object BaseEventArgs { get; }
Property Value
Type |
---|
System.Object |
Cancel
Gets or sets whether to cancel the current filter/search logic.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
PreventDefaultAction
Gets or sets if the internal Syncfusion filter/search operation should be prevented (for custom filtering scenarios).
Declaration
public bool PreventDefaultAction { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Text
Gets the user-typed or filter text value in this event.
Declaration
public string Text { get; }
Property Value
Type | Description |
---|---|
System.String | The filter term as string, or null if not provided. |
UpdateData
[Obsolete] Old custom filtered data; not supported in new Syncfusion search scenarios.
Declaration
public object UpdateData { get; set; }
Property Value
Type |
---|
System.Object |