I have the following controller action that is invoked when I type in the Autocomplete box, however the DataSourceRequest object isn't populated with the filters that are passed, as if the model binding isn't working (all of the properties for my request variable below are the defaults i.e. filters is null).
1.
public
JsonResult GetParentResellers([DataSourceRequest]DataSourceRequest request)
2.
{
3.
//...
4.
}
View:
1.
@(Html.Kendo().AutoComplete()
2.
.Name(
"hi"
)
3.
.DataSource(ds => ds.Read(
"GetParentResellers"
,
"Resellers"
)
4.
.ServerFiltering(
true
)))
And finally here's what's sent to the server( query string)
1.
filter[logic]:and
2.
filter[filters][0][value]:f
3.
filter[filters][0][operator]:startswith
4.
filter[filters][0][field]:
5.
filter[filters][0][ignoreCase]:
true