New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI Filter component

Definition

Constructors

Initializes a new instance of the Filter<T> class.

C#
public Filter(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

If set to true the filter will display a button which when clicked will apply filtering over the datasource.

C#
public bool? ApplyButton { get; set; }

The data source to which the widget will apply a filter. Should be an existing kendo.data.DataSource instance.

C#
public string DataSource { get; set; }

An object which represents a filter expression which the kendo.data.DataSource can use to filter the data.

C#
public CompositeFilterDescriptor Expression { get; set; }

If set to true the filter will visualize the filter expression that will be applied to the datasource.

C#
public bool? ExpressionPreview { get; set; }

The configuration of the filter fields. An array of JavaScript objects that hold information regarding the filter field, it's editor, default values used for filter and etc.

C#
public List<FilterField<T>> Fields { get; set; }

Defines the value of the logical operator at the root level of the filter expression.

C#
public FilterCompositionLogicalOperator MainLogic { get; set; }

The text messages displayed in the filter. Use it to customize or localize the filter messages.

C#
public FilterMessagesSettings<T> Messages { get; }

The text of the filter operators displayed in the filter.

C#
public FilterOperatorsSettings<T> Operators { get; }

Methods

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteHtml(TextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)