New to Telerik UI for ASP.NET MVC? Start a free 30-day trial
Filtering
Updated over 6 months ago
The built-in filtering functionality enables the user to filter the displayed DropDownTree items by their text value.
By default, filtering is disabled and can be performed over string values using the field set as DataTextField.
The DropDownTree supports the following filter values:
StartsWithEndsWithContains
The following example demonstrates how to set the filter of the DropDownTree.
Razor
@(Html.Kendo().DropDownTree()
.Name("dropdowntree")
.DataTextField("Name")
.Filter(FilterType.Contains)
.DataSource(dataSource => dataSource
.Read(read => read
.Action("Read_DropDownTreeData", "Home")
)
)
)