Navigator: Binding to DayPilot Controls
DayPilotNavigator can switch the data of any main DayPilot control.
Steps
1. Assign the ID of the DayPilotCalendar to DayPilotNavigator.BoundDayPilotID property.
Supported target controls:
2. Handle the DayPilotCalendar.Command event and watch for e.Command == "navigate". The selected start/end range are stored in e.Data:
DateTime start = (DateTime) e.Data["start"];
DateTime end = (DateTime) e.Data["end"];You should set the new StartDate and reload the events (DataBind()). Don't forget to call full Update():
DayPilotCalendar1.StartDate = (DateTime) e.Data["start"];
DayPilotCalendar1.DataBind();
DayPilotCalendar1.Update(CallBackUpdateType.Full);
The "navigate" command string can be changed using BindCommand property.