I need to pass several filter values to the Backend action of my controller through a DayPilotControl and DayPilotNavigator components. How can this be accomplished?
The view is defined using the MVC razor helper like so:
@Html.DayPilotCalendar("dpc", new DayPilotCalendarConfig(Old.Theme)
ViewType = DayPilot.Web.Mvc.Enums.Calendar.ViewType.Week,
ShowAllDayEvents = true,
AllDayEventHeight = 25,
CssOnly = true,
//EventBubble = "bubble",
CssClassPrefix = "calendar_blue",
BackendUrl = Href("~/Calendar/Backend"),
Height = 800,
HeightSpec = DayPilot.Web.Mvc.Enums.Calendar.HeightSpec.Full,
StartDate = ViewBag.Helper.DateRangeStart,
DayBeginsHour = 6,
DayEndsHour = 21,
The Backend action passes the request on to a subclass of DayPilotCalendar (CalendarComponent):
public ActionResult Backend()
return new CalendarComponent(Request, _calendarService, _sessionService, _calendarHelper).CallBack(this);
If I could get some custom data into the post request that is sent back by the dpc object I could take it from there since I can get the request context and do whatever I need to through the Callback action.
So basically I just need to know how to trigger a refresh on the dpc object and specify some custom parameters to send back to the Backend action.