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

Defines the fluent API for configuring the TreeListColumnFilterableSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class TreeListColumnFilterableSettingsBuilder<T> where T : class

Inheritance: objectTreeListColumnFilterableSettingsBuilder<T>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public TreeListColumnFilterableSettingsBuilder(TreeListColumnFilterableSettings settings, ViewContext viewContext, IUrlGenerator urlGenerator)
Parameters:settingsTreeListColumnFilterableSettingsviewContextViewContexturlGeneratorIUrlGenerator

Methods

Specifies options for the filter header cell when filter mode is set to 'row'.Can be set to a JavaScript object which represents the filter cell configuration.

C#
public TreeListColumnFilterableSettingsBuilder<T> Cell(Action<TreeListColumnFilterableCellSettingsBuilder<T>> configurator)
Parameters:configuratorAction<TreeListColumnFilterableCellSettingsBuilder<T>>

The action that configures the cell.

Returns:

TreeListColumnFilterableSettingsBuilder<T>

Example:
C#
@(Html.Kendo().TreeList&lt;UserViewModel&gt;()
.Name("treelist")
.Columns(columns =&gt;
{
columns.Add()
.Filterable(filterable =&gt; filterable
.Cell(c =&gt; c.Delay(1500)));
})
.Filterable(ftb =&gt; ftb.Mode("row"))
)

Configures the Filter menu operators.

C#
public TreeListColumnFilterableSettingsBuilder<T> Operators(Action<FilterableOperatorsBuilder> configurator)
Parameters:configuratorAction<FilterableOperatorsBuilder>

The configurator for the filterable setting.

Returns:

TreeListColumnFilterableSettingsBuilder<T>

Example:
C#
@(Html.Kendo().TreeList&lt;UserViewModel&gt;()
.Name("treelist")
.Columns(columns =&gt;
{
columns.Add()
.Filterable(filterable =&gt; filterable
.Operators(ftb =&gt; ftb
.ForString(s =&gt; s.Contains("Contains")));
})
)

The role data attribute of the component that is used in the filter menu, or a JavaScript function which initializes that component.

C#
public TreeListColumnFilterableSettingsBuilder<T> Ui(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The value that configures the ui action.

Returns:

TreeListColumnFilterableSettingsBuilder<T>

The role data attribute of the component that is used in the filter menu, or a JavaScript function which initializes that component.

C#
public TreeListColumnFilterableSettingsBuilder<T> Ui(string handler)
Parameters:handlerstring

The value that configures the ui action.

Returns:

TreeListColumnFilterableSettingsBuilder<T>