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 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 the selected date using a Label control
How to show cell Bubble using JavaScript
How to set the time cell colors using database data in the Scheduler