DayPilot Knowledge Base

AJAX Calendar/Scheduling Controls
DayPilot Pro (AJAX Calendar Control)
» DayPilot ASP.NET Calendar
DayPilot Pro (AJAX Monthly Calendar Control)
» DayPilot ASP.NET Monthly Calendar
DayPilot Pro (AJAX Scheduler Control)
» DayPilot ASP.NET 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 use DayPilot controls with custom database structure (schema)
How to implement Copy & Paste in the Calendar
How to open a new event dialog using TimeRangeSelected event (modal.js)