TreeListColumnFilterableCellSettingsBuilder
Methods
DataTextField(System.String)
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.
Parameters
value - System.String
The value that configures the datatextfield.
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.DataTextField("Name")
)
Delay(System.Double)
Specifies the delay of the AutoComplete component which will provide the suggest functionality (when using String type column).
Parameters
value - System.Double
The value that configures the delay.
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Columns(columns =>
{
columns.Add()
.Filterable(filterable => filterable
.Cell(c => c.Delay(1500)));
})
)
InputWidth(System.Double)
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.
Parameters
value - System.Double
The value that configures the inputwidth.
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Columns(columns =>
{
columns.Add()
.Filterable(filterable => filterable
.Cell(c => c.InputWidth(150)));
})
)
SuggestionOperator(System.String)
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.
Parameters
value - System.String
The value that configures the suggestionoperator.
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Columns(columns =>
{
columns.Add()
.Filterable(filterable => filterable
.Cell(c => c.SuggestionOperator("startswith")));
})
)
MinLength(System.Double)
Specifies the minLength option of the AutoComplete component when column is of type string.
Parameters
value - System.Double
The value that configures the minlength.
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Columns(columns =>
{
columns.Add()
.Filterable(filterable => filterable
.Cell(c => c.MinLength(3)));
})
)
Enabled(System.Boolean)
When set to false the TreeList will not render the cell filtering component for that specific column.
Parameters
value - System.Boolean
The value that configures the enabled.
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Columns(columns =>
{
columns.Add()
.Filterable(filterable => filterable
.Cell(c => c.Enabled(false)));
})
)
Operator(System.String)
Specifies the default operator that will be used for the cell filtering.
Parameters
value - System.String
The value that configures the operator.
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Columns(columns =>
{
columns.Add()
.Filterable(filterable => filterable
.Operators(ftb => ftb
.ForString(s => s
.Contains("Contains")));
})
)
ShowOperators(System.Boolean)
Specifies whether to show or hide the DropDownList with the operators.
Parameters
value - System.Boolean
The value that configures the showoperators.
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Columns(columns =>
{
columns.Add()
.Filterable(filterable => filterable
.Cell(c => c.ShowOperators(true)));
})
)
Template(System.String)
Configures the cell filter template
Parameters
value - System.String
The value that configures the template.
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Columns(columns =>
{
columns.Add()
.Filterable(filterable => filterable
.Cell(c => c.Template("TemplateName")));
})
)
DataSource(System.Action)
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.