<<
Hourly and minutely time resolutions
>>
Show source code for this site
Choose one of the available resolutions.
Scheduler.TimeResolution:
HalfDay
SixHour
OneHour
HalfHour
QuartHour
TenMinutes
FiveMinutes
more daily and monthly resolutions
Number of columns for a unit of time.
Scheduler.NumerOfCols:
Wider time cells
Time period and resolution of time presented in a scheduler depend on values of two properties:
Scheduler.TimeResolution
and
Scheduler.NumberOfCols
. Multiplying a unit of time and a number of columns determines a period displayed. Additionally using a
Scheduler.FirstDateTime
property an origin and a
Scheduler.LastDateTime
property the end of time axis can be set. Changing a
Scheduler.LastDateTime
property you force recalculation of a
Scheduler.NumberOfCols
property. Buttons going to next and previous period of time change origin of a time axis in a scheduler. Displayed time period is not changed. A situation when a scheduler shows a whole month is an exception. Then changing to next or previous period of time is performed in such a way that the same number of full months are displayed. It means that a change of a number of displaying columns is possible.
Operation of this sample page is very simple. After setting the fields above a scheduler are set, a
request
to a server (
postback
) is generated and
Scheduler
object properties initialized with values entered in fields using a
OnLoad()
server method.
If you would look into a
source code
for this demo, click on the link.
For demonstration purposes all appointments displayed on a calendar are stored in ASP.NET session objects, so original values are restored immediately after a new session object is created.
A list of appointments and resources is intialized every time a new session is started.