Filter<T>
Kendo UI Filter component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class Filter<T> : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBaseFilter<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the class.
public Filter(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
If set to true the filter will display a button which when clicked will apply filtering over the datasource.
public bool? ApplyButton { get; set; }
The data source to which the widget will apply a filter. Should be an existing kendo.data.DataSource instance.
public string DataSource { get; set; }
An object which represents a filter expression which the kendo.data.DataSource can use to filter the data.
public CompositeFilterDescriptor Expression { get; set; }
If set to true the filter will visualize the filter expression that will be applied to the datasource.
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.
public List<FilterField<T>> Fields { get; set; }
Defines the value of the logical operator at the root level of the filter expression.
public FilterCompositionLogicalOperator? MainLogic { get; set; }
The text messages displayed in the filter. Use it to customize or localize the filter messages.
public FilterMessagesSettings Messages { get; set; }
The text of the filter operators displayed in the filter.
public FilterOperatorsSettings Operators { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: