Hi,
In my app, I have a scheduler that I try to fill using the DataSource.Read but it stay empty.
I verified the data arrives to the client but it seems not to be understand by the control.
Here's a bit of code:
I already use a scheduler on another page but using the BindTo method which work just fine.
Here I need to call server to update the scheduler when the user change displayed the week.
What do I miss ?
Regards,
David
In my app, I have a scheduler that I try to fill using the DataSource.Read but it stay empty.
I verified the data arrives to the client but it seems not to be understand by the control.
Here's a bit of code:
@(Html.Kendo().Scheduler<xxx.Website.Models.Lesson>() .Name("scheduler") .Date(new DateTime(2014, 12, 12)) .StartTime(new DateTime(2014, 12, 8, 9, 00, 00)) .EndTime(new DateTime(2014, 12, 5, 14, 00, 0)) .Height(700) .AllDaySlot(false) .Views(views => { views.WeekView(); }) .Resources(resource => { resource.Add(m => m.LessonType).Title("Lesson Type").DataTextField("Text").DataValueField("Value").DataColorField("Color").BindTo(new[]{ new { Text = "Group1", Value=1, Color="#DC8166"}, new { Text = "Group2", Value=2, Color="#889DAE"}, new { Text = "Group3", Value=3, Color="#91DE80"}, new { Text = "Group4", Value=4, Color="#FFD24D"} }); }) .Timezone("UTC") .Editable(false) .DataSource(d => d .Model(m => { m.Id(f => f.Id); m.Field(f => f.Title).DefaultValue("No title"); }) .Read(read => read.Action("Read_Scheduler", "Administration").Data("getDates"))))I already use a scheduler on another page but using the BindTo method which work just fine.
Here I need to call server to update the scheduler when the user change displayed the week.
What do I miss ?
Regards,
David