I am attempting to hit an ASP.NET MVC controller action with the Kendo Datasource from the "Autocomplete" widget. The controller looks a bit like this ..
So I need the actual URL parameter to be called "term" from the dataSource. So given this..
I can't seem to get this to work though.
Also, it is important to note that there are MULTIPLE auto-completes on the page with dynamic identities. So it cannot work to call a specific selector.
I have been looking for a few hours, and I'm not seeming to find a way to do this.
public JsonResult Aspect(string term){
// ...
}
$(".autocomplete").kendoAutoComplete({
dataTextField: "Name",
dataSource: {
type: "json",
transport: {
read: "/search/aspect",
data: { term: $(this).val() }
}
}
});
Also, it is important to note that there are MULTIPLE auto-completes on the page with dynamic identities. So it cannot work to call a specific selector.
I have been looking for a few hours, and I'm not seeming to find a way to do this.