Ive a scheduler with a custom editor template. The template displays a MultiSelect whose selectable values will differ depending upon what specific event is picked. So when I click an event I capture the Edit event and I refresh the MultiSelect to populate its selecteble values and this works.
$('#PrerequisiteOids').data('kendoMultiSelect').dataSource.read();
However my selected values from my model are never set in the control. I'm guessing this is something to do with it being in a Template - how do I bind my values from the selected Event?
The MultiSelect in the Template looks like this:
@(Html.Kendo().MultiSelectFor(model => model.Prerequisites)
.Name("Prerequisites")
.AutoBind(true)
.DataTextField("Title")
.DataValueField("Oid")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetPrerequisites", "CourseCalendar").Data("getCourseEventID");
})
.ServerFiltering(true);
})
.HtmlAttributes(new { @class = "universalWidth" }))
Has