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

Defines the fluent API for configuring the TreeListColumnFilterableCellSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectTreeListColumnFilterableCellSettingsBuilder<T>

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

Constructors

Initialize the TreeListColumnFilterableCellSettingsBuilder

C#
public TreeListColumnFilterableCellSettingsBuilder(TreeListColumnFilterableCellSettings settings, ViewContext viewContext, IUrlGenerator urlGenerator)
Parameters:settingsTreeListColumnFilterableCellSettings

The TreeListColumnFilterableCellSettings

viewContextViewContexturlGeneratorIUrlGenerator

Methods

Specifies a custom dataSource for the AutoComplete when the type of the column is string. Can be a JavaScript object which represents a valid data source configuration, a JavaScript array, or an existing kendo.data.DataSource instance.It is not recommended that you use the same dataSource instance for the TreeList and the AutoComplete because it causes negative side effects.If the dataSource options is missing, a new cloned instance of the TreeList's dataSource will be used.If the dataSource option is an existing kendo.data.DataSource instance, the component will use that instance and will not initialize a new one.

C#
public TreeListColumnFilterableCellSettingsBuilder<T> DataSource(Action<ReadOnlyDataSourceBuilder> configurator)
Parameters:configuratorAction<ReadOnlyDataSourceBuilder>Returns:

TreeListColumnFilterableCellSettingsBuilder<T>

Specifies the name of the field which will provide the text representation for the AutoComplete suggestion (when using String type column) when CustomDataSource is provided. By default the name of the field bound to the column will be used.

C#
public TreeListColumnFilterableCellSettingsBuilder<T> DataTextField(string value)
Parameters:valuestring

The value that configures the datatextfield.

Returns:

TreeListColumnFilterableCellSettingsBuilder<T>

Example:
C#
@(Html.Kendo().TreeList&lt;UserViewModel&gt;()
.Name("treelist")
.DataTextField("Name")
)

Specifies the delay of the AutoComplete component which will provide the suggest functionality (when using String type column).

C#
public TreeListColumnFilterableCellSettingsBuilder<T> Delay(double value)
Parameters:valuedouble

The value that configures the delay.

Returns:

TreeListColumnFilterableCellSettingsBuilder<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)));
})
)

When set to false the TreeList will not render the cell filtering component for that specific column.

C#
public TreeListColumnFilterableCellSettingsBuilder<T> Enabled(bool value)
Parameters:valuebool

The value that configures the enabled.

Returns:

TreeListColumnFilterableCellSettingsBuilder<T>

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

Specifies the width of the input before it is initialized or turned into a component. Provides convenient way to set the width according to the column width.

C#
public TreeListColumnFilterableCellSettingsBuilder<T> InputWidth(double value)
Parameters:valuedouble

The value that configures the inputwidth.

Returns:

TreeListColumnFilterableCellSettingsBuilder<T>

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

Specifies the minLength option of the AutoComplete component when column is of type string.

C#
public TreeListColumnFilterableCellSettingsBuilder<T> MinLength(double value)
Parameters:valuedouble

The value that configures the minlength.

Returns:

TreeListColumnFilterableCellSettingsBuilder<T>

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

Specifies the default operator that will be used for the cell filtering.

C#
public TreeListColumnFilterableCellSettingsBuilder<T> Operator(string value)
Parameters:valuestring

The value that configures the operator.

Returns:

TreeListColumnFilterableCellSettingsBuilder<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")));
})
)

Specifies whether to show or hide the DropDownList with the operators.

C#
public TreeListColumnFilterableCellSettingsBuilder<T> ShowOperators(bool value)
Parameters:valuebool

The value that configures the showoperators.

Returns:

TreeListColumnFilterableCellSettingsBuilder<T>

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

Specifies the AutoComplete filter option. The possible values are the same as the ones for the AutoComplete filter option - "startswith", "endswith", "contains". The "contains" operator performs a case-insensitive search. To perform a case-sensitive filtering, set a custom filtering function through the dataSource.filter.operator option.

C#
public TreeListColumnFilterableCellSettingsBuilder<T> SuggestionOperator(string value)
Parameters:valuestring

The value that configures the suggestionoperator.

Returns:

TreeListColumnFilterableCellSettingsBuilder<T>

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

Configures the cell filter template

C#
public TreeListColumnFilterableCellSettingsBuilder<T> Template(string value)
Parameters:valuestring

The value that configures the template.

Returns:

TreeListColumnFilterableCellSettingsBuilder<T>

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