Hi there,
i am using a ForeignKeyEditor in the Grid like this
GridForeignKey.cshtml:
@model object
@(
Html.Kendo().DropDownListFor(m => m)
.Filter(FilterType.Contains)
.BindTo((SelectList)ViewData[ViewData.TemplateInfo.GetFullHtmlFieldName("") + "_Data"])
)
This works however filtering is not working as expected.
If I use the above code the column displays *all* values and not the distinct values that are actually used.
Checking the documentation it states:
By default, the Grid internally matches the values collection in the column with the corresponding value field from the dataItem and creates a collection with the unique values for the filtering of the foreignKey column.
So why is this not working with the above code?