Is there anyone know why the MultiSelect works fine for the first item. After first one select, it will not work properly( please see the screen shot). type a letter then all matched item will be selected. Click any one then the box will reset.
cshtml
@(Html.Kendo().MultiSelect()
.Name("Users")
.DataTextField("FullUserInfo")
.DataValueField("UserID")
.Placeholder("Type Last Name or First Name")
.DataSource(source => {
source.Read(read =>
{
read.Action("GetFilterUser", "Method");
})
.ServerFiltering(true);
})
)
Controller
[HttpGet]
public JsonResult GetFilterUser(string text)
{
personList = (IEnumerable<UserListboxDataViewModel>)
dataService.GetAllPersonsforListBox();
if (!string.IsNullOrEmpty(text))
{
personList = personList.Where(p =>
(p.FullUserInfo.Contains(text))).ToList();
}
return Json(personList, JsonRequestBehavior.AllowGet);
}