Hi,
I have a dropdown list (ASP.NET Core v2021.2.511) that I have enabled filtering on using a contains filter. The list is bound but contains only a small number of rows, therefore Server filtering seemed to be overkill.
What is happening is this:
GLCode: H120
Description: Tuition Direct - Running Expenses
Templated text: Tuition Direct - Running Expenses (H120)
Search Text Examples:
- H120 - no results found
- tuit - item found
From this is appears that with client filtering that only the text in the DataTextField and not the result of the templated value is searched.
Is this by design or is it a bug ?
Shared View Code:
@model GeneralLedgerAccounts
@(Html.Kendo().DropDownListFor(m => m)
.DataValueField("GLCode")
.DataTextField("Description")
.OptionLabel("Choose a GL Code ...")
.Filter(FilterType.Contains)
.BindTo((System.Collections.IEnumerable)ViewData["BudgetGLCodes"])
.Template("#: data.Description # (#: data.GLCode #)")
)
Many Thanks
Chris