DayPilot Knowledge Base

AJAX Calendar/Scheduling Controls
DayPilot Pro (AJAX Calendar Control)
» DayPilot AJAX Calendar
DayPilot Pro (AJAX Monthly Calendar Control)
» DayPilot AJAX Monthly Calendar
DayPilot Pro (AJAX Scheduler Control)
» DayPilot AJAX Scheduler
DayPilot » Knowledge Base » How to bind Navigator to multiple controls

How to bind Navigator to multiple controls

Last revision: Feb 23, 2010

1. Switch to manual (JavaScript) TimeRangeSelected handling:

DayPilotNavigator.TimeRangeSelectedHandling="JavaScript"

2. Create a client-side handler that will update all the controls you need

DayPilotNavigator.TimeRangeSelectedJavaScript="dpc.commandCallBack("navigate", {start:start}); dpm.commandCallBack('navigate', {start:start});"

This code will update two controls:

This is the fastest way which will only pass "start" parameter to the commandCallBack.

The TimeRangeSelectedHandling="Bind" option is calling something like this:

dpc.commandCallBack(dpn.command, {start:start, end: end, days: dpn.days});

Where "dpn" is the value of DayPilotNavigator.ClientObjectName property.

Related

How to show the selected date using a Label control
How to open a new event dialog using TimeRangeSelected event (modal.js)
Event Calendar for jQuery (ASP.NET MVC)
How to implement Copy & Paste in the Calendar