Defines the fluent API for configuring FilterField
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class FilterFieldBuilder<T> where T : class
Inheritance: objectFilterFieldBuilder<T>
Inherited Members
Constructors
FilterFieldBuilder method.
Properties
Gets or sets the Container.
protected FilterField<T> Container { get; }
Methods
A value which will be initially set as a filter value when an expression item for the specific field is created.
public FilterFieldBuilder<T> DefaultValue(object value)
The value for DefaultValue
Returns:Returns the current FilterFieldBuilder<T> instance.
The template which the widget will use to create the field editor.
public FilterFieldBuilder<T> EditorTemplate(string value)
The value for EditorTemplate
Returns:Returns the current FilterFieldBuilder<T> instance.
The template which the widget will use to create the field editor.
public FilterFieldBuilder<T> EditorTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the editortemplate.
Returns:Returns the current FilterFieldBuilder<T> instance.
The template which the widget will use to create the field editor.
public FilterFieldBuilder<T> EditorTemplateHandler(Func<object, object> value)
The value for EditorTemplate
Returns:Returns the current FilterFieldBuilder<T> instance.
The template which the widget will use to create the field editor.
public FilterFieldBuilder<T> EditorTemplateHandler(string templateHandler)
The handler that returs the template for EditorTemplate
Returns:Returns the current FilterFieldBuilder<T> instance.
The template which the widget will use to create the field editor.
public FilterFieldBuilder<T> EditorTemplateId(string templateId)
The ID of the template element for EditorTemplate
Returns:Returns the current FilterFieldBuilder<T> instance.
The template which the widget will use to create the field editor.
public FilterFieldBuilder<T> EditorTemplateView(IHtmlContent templateView)
The view that contains the template for EditorTemplate
Returns:Returns the current FilterFieldBuilder<T> instance.
Defines a value which will be visualized instead of the data feild name.
public FilterFieldBuilder<T> Label(string value)
The value for Label
Returns:Returns the current FilterFieldBuilder<T> instance.
The text of the filter operators displayed in the filter.
public FilterFieldBuilder<T> Operators(Action<FilterOperatorsSettingsBuilder<T>> configurator)
The configurator for the operators setting.
Returns:Returns the current FilterFieldBuilder<T> instance.
The format of the value displayed in the preview.
public FilterFieldBuilder<T> PreviewFormat(string value)
The value for PreviewFormat
Returns:Returns the current FilterFieldBuilder<T> instance.