Instead of changing startDate with a navigator I'm using a jquery datepicker and is therefore setting it like this:
dps.startDate = new DayPilot.Date($intStart.datepicker("getDate"));
Calling dps.update() after doing so doesn't do anything.
This is how the scheduler is initialized in my view file:
@Html.DayPilotScheduler("dps", new DayPilotSchedulerConfig()
{
BackendUrl = Url.Content("~/Scheduler/Backend"),
CssOnly = true,
CssClassPrefix = "mw",
TimeRangeSelectedHandling = TimeRangeSelectedHandlingType.JavaScript,
TimeRangeSelectedJavaScript = "pm.rangeSelected(start, end, resource)",
EventClickHandling = EventClickHandlingType.JavaScript,
EventClickJavaScript = "pm.editTask(e.value())",
EventMoveHandling = EventMoveHandlingType.CallBack,
EventResizeHandling = EventResizeHandlingType.CallBack,
AfterRenderJavaScript = "afterRender(data, isCallBack)",
DynamicLoading = true,
StartDate = start,
Days = days,
EventHeight = 30,
CellWidth = 18,
CellSelectColor = "#518941",
TimeHeaders = new TimeHeaderCollection {
new TimeHeader(GroupBy.Month),
new TimeHeader(GroupBy.Day, "dddd dd"),
new TimeHeader(GroupBy.Hour)
}
})
It's not that any script errors occur, dps.update() simply doesn't do anything.
Am I missing something?