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 get the scrollbar position as date/time (server side)

How to get the scrollbar position as date/time (server side)

Last revision: Mar 8, 2010

Use the following code to get the scrollbar position as DateTime (server side) in the Scheduler.

You can get the scrollbar position in pixels using ScrollX property:

int scroll = DayPilotScheduler1.ScrollX;

The start DateTime of the first visible cell can be accessed using ViewPort.Start property:

DateTime start = DayPilotScheduler1.ViewPort.Start;

The end DateTime of the last visible cell can be accessed using ViewPort.End property:

DateTime end = DayPilotScheduler1.ViewPort.End;

The ViewPort property is available for both the static and dynamic event loading mode (DynamicLoading property).

Related

How to get the scrollbar position as date/time (client side)
How to show cell Bubble using JavaScript
How to set the time cell colors using database data in the Scheduler
How to open a new event dialog using TimeRangeSelected event (modal.js)