I am populating The auto-complete portion of the Multi-Select like below
Controller:
Razor:
I was wondering is it possible to bind the value to a list that is not in the auto-complete list and also be able to type a new name in as the value?
Controller:
public JsonResult lstNames(string name)
{
var lstOfNames = db.GetNames.Select(e => new
{
name = e.Names
});
return Json(lstOfNames , JsonRequestBehavior.AllowGet);
}
Razor:
@(Html.Kendo()
.MultiSelect()
.Name("names")
.AutoBind(true)
.Placeholder("Select names...")
.DataTextField("name")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("lstNames", "ListNamesView");
})
.ServerFiltering(true);
})
)
I was wondering is it possible to bind the value to a list that is not in the auto-complete list and also be able to type a new name in as the value?