Hello,
I'm using the MVC method for my AutoComplete. I'm able to connect to the data source and bring back a list, however, I would like to send what the user is typing to the action in order to filter on the server instead of bringing back all 4000 results and filtering on the client. I cannot seem to figure out either how to add it to the request, or to pick it up in the controller. My helper looks like this:
I can see from the post that filter[filters][0][value]textbeingtyped
is sent in the request, but I can't figure out how to pick that up in the Controller.
Thanks for any help you can provide.
I'm using the MVC method for my AutoComplete. I'm able to connect to the data source and bring back a list, however, I would like to send what the user is typing to the action in order to filter on the server instead of bringing back all 4000 results and filtering on the client. I cannot seem to figure out either how to add it to the request, or to pick it up in the controller. My helper looks like this:
@(Html.Kendo().AutoCompleteFor(x => x.Distribution)
.DataTextField(
"label"
)
.DataSource(source => {
source.Read(read => {
read.Url(
"/EmployeeSearch"
);
});
source.ServerFiltering(
true
);
})
.Filter(
"contains"
)
.Suggest(
true
)
.MinLength(3)
.Separator(
"; "
)
)
I can see from the post that filter[filters][0][value]textbeingtyped
is sent in the request, but I can't figure out how to pick that up in the Controller.
Thanks for any help you can provide.