Hi, I have a Kendo Dropdownlist with ajax datasource, ServerFiltering and a contains filter.
Unfortunately, the contains filter does not work. I tried to pass the "text" parameter in the data-function of the dropdownlist, but without success.<select id="multiselect" multiple="multiple"></select>
$("#multiselect").kendoDropDownList({
name: "dataSelect",
filter: "contains",
dataSource: {
type: "aspnetmvc-ajax",
serverFiltering: true,
transport: {
read: {
type: "POST",
url: "@Url.Page("Data", "ReadData")",
data: function() {
//var text = $('#dataSelect').data("kendoDropDownList").filterInput; not working
//var data = { text: text };
//return $.extend(kendo.antiForgeryTokens(), data);
return kendo.antiForgeryTokens();
}
}
}
});
public ActionResult OnPostReadData([DataSourceRequest] DataSourceRequest request, string text)
{
}