Hi. I just want to display a list of values that are retrieved serverside using AJAX. It calls the AJAX method successfully, but does not display the returned values.
Markup:
@(Html.Kendo().AutoComplete()
.Name("EditNameAutoComplete")
.DataSource(source =>
source.Read(read => read.Action("GetUsers", "Administration"))
.ServerFiltering(true)))
Method:
public
JsonResult GetUsers()
{
string
input = Request.Params[
"filter[filters][0][value]"
];
var adValues =
//Get names from Active Directory that start with our input
var users = adValues.Select(user => user.CommonName).ToList();
users.Sort();
return
Json(users);
}
Should be simple enough, and it's calling the Ajax method, but not displaying anything afterward. It just acts like a normal textbox. I'm definitely returning strings. What am I doing wrong?