This is for Kendo UI version 2013.1.514.340.
Here is my MVC view:
<script src="~/Scripts/jquery-1.7.1.js"></script>
<script src="~/Scripts/kendo.web.min.js"></script>
<script src="~/Scripts/kendo.aspnetmvc.min.js"></script>
<link href="~/Styles/examples.css" rel="stylesheet" />
<link href="~/Styles/kendo.common.min.css" rel="stylesheet" />
<link href="~/Styles/kendo.default.min.css" rel="stylesheet" />
@using Kendo.Mvc.UI
@model List<CV.Prototype.ViewModels.MyRecord>
@(Html.Kendo().MultiSelect()
.Name("categoryMultiselect")
.DataTextField("Name")
.DataValueField("Id")
//SERVER BINDING
.BindTo(Model)
.Value(Model)
)
My controller is simply:
public ActionResult Index()
{
var x = new List<MyRecord>
{
new MyRecord {Id = 1, Name = "Name1"},
new MyRecord {Id = 2, Name = "Name2"},
new MyRecord {Id = 3, Name = "Name3"},
new MyRecord {Id = 4, Name = "Name4"}
};
return View(x);
}
All the records display inside the grey boxes, but are not inside the input text box. Also the throbber is constantly displaying. Apart from this it functions correctly both with Server and Ajax binding. Any clues as to what I might be missing?
Here is my MVC view:
<script src="~/Scripts/jquery-1.7.1.js"></script>
<script src="~/Scripts/kendo.web.min.js"></script>
<script src="~/Scripts/kendo.aspnetmvc.min.js"></script>
<link href="~/Styles/examples.css" rel="stylesheet" />
<link href="~/Styles/kendo.common.min.css" rel="stylesheet" />
<link href="~/Styles/kendo.default.min.css" rel="stylesheet" />
@using Kendo.Mvc.UI
@model List<CV.Prototype.ViewModels.MyRecord>
@(Html.Kendo().MultiSelect()
.Name("categoryMultiselect")
.DataTextField("Name")
.DataValueField("Id")
//SERVER BINDING
.BindTo(Model)
.Value(Model)
)
My controller is simply:
public ActionResult Index()
{
var x = new List<MyRecord>
{
new MyRecord {Id = 1, Name = "Name1"},
new MyRecord {Id = 2, Name = "Name2"},
new MyRecord {Id = 3, Name = "Name3"},
new MyRecord {Id = 4, Name = "Name4"}
};
return View(x);
}
All the records display inside the grey boxes, but are not inside the input text box. Also the throbber is constantly displaying. Apart from this it functions correctly both with Server and Ajax binding. Any clues as to what I might be missing?