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

Defines the fluent API for configuring the TreeListFilterableSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectTreeListFilterableSettingsBuilder<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 TreeListFilterableSettingsBuilder(TreeListFilterableSettings settings)
Parameters:settingsTreeListFilterableSettings

Methods

If set to true, the filter menu will allow the user to input a second criteria.

C#
public TreeListFilterableSettingsBuilder<T> Extra(bool value)
Parameters:valuebool

The value that configures the extra.

Returns:

TreeListFilterableSettingsBuilder<T>

Configures Filter menu messages.

C#
public TreeListFilterableSettingsBuilder<T> Messages(Action<FilterableMessagesBuilder> configurator)
Parameters:configuratorAction<FilterableMessagesBuilder>

Message configuration.

Returns:

TreeListFilterableSettingsBuilder<T>

Example:
C#
@(Html.Kendo().TreeList&lt;UserViewModel&gt;()
.Name("treelist")
.Filterable(f =&gt; f
.Messages(m =&gt; m.Info("Filter by: ")))
)

If set to row the user would be able to filter via extra row added below the headers. By default filtering is using the menu mode.Can also be set to the following string values: "row" - the user can filter via extra row within the header.; "menu" - the user can filter via the menu after clicking the filter icon. or "menu, row" - the user can filter with both modes above enabled..

C#
public TreeListFilterableSettingsBuilder<T> Mode(string value)
Parameters:valuestring

The value that configures the mode.

Returns:

TreeListFilterableSettingsBuilder<T>

Configures the Filter menu operators.

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

The filterable operators configuration.

Returns:

TreeListFilterableSettingsBuilder<T>

Example:
C#
@(Html.Kendo().TreeList&lt;UserViewModel&gt;()
.Name("treelist")
.Filterable(filterable =&gt; filterable
.Operators(operators =&gt; operators
.ForString(str =&gt; str.Clear()
.StartsWith("Starts with")
)
)
)
)