![]() |
Web Development »
ASP.NET Controls »
General
License: The Apache License, Version 2.0
DayPilot Scheduler Control for ASP.NETBy Dan LeteckyFlexible open-source scheduler control (resource booking, project management, timeline and free/busy visualization) |
C#, ASP.NET, WebForms, Dev
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
Main features:
Database connectivity:
DataSource and DataSourceID properties supported SqlDataSource XmlDataSource DataTable DataSet ArrayList Event handling:
Licensing:
Compatibility:
DayPilot Scheduler reuses the event arranging algorithms introduced in the DayPilot Calendar control (Outlook-like day and week view calendar/scheduler):
DayPilot Calendar detects blocks of overlapping events so they could be displayed properly. The width of each event box is adjusted according to the number of concurrent events:

DayPilot Scheduler uses the same arranging algorithm but the layout is different:

This reduces the concurrency problem: The increasing number of concurrent events doesn't reduce readability.
<DayPilot:DayPilotScheduler
ID="DayPilotScheduler1"
runat="server"
DataSourceID="SqlDataSource1"
DataStartField="start"
DataEndField="end"
DataTextField="name"
DataValueField="id"
DataResourceField="resource"
StartDate="2009-01-01"
CellDuration="60"
Days="1" >
<Resources>
<DayPilot:Resource Name="Room A" Value="A" />
<DayPilot:Resource Name="Room B" Value="B" />
<DayPilot:Resource Name="Room C" Value="C" />
</Resources>
</DayPilot:DayPilotScheduler>
The first group properties defines the data binding:
DataSourceID DataStartField (starting DateTime) DateEndField (ending DateTime) DataTextField (event text) DataValueField (event id) DataResourceField (resource id) DataResourceField is important - the values from this column will be matched with the resource IDs (Resource.Value).
The second group defines the time range and scale:
StartDate (first visible day) Days (number of visible days) CellDuration (cell duration in minutes) And finally, it's necessary to define the resources (rows):
Resource.Name (row name) Resource.Value (row ID) Settings:
Days="1"
CellDuration="60"
StartDate is set manually in the code behind:
DayPilotScheduler1.StartDate = DateTime.Today;
Settings:
Days="7"
CellDuration="1440"
The first day of week is calculated using Week.FirstDayOfWeek helper:
DayPilotScheduler1.StartDate = Week.FirstDayOfWeek(DateTime.Today, DayOfWeek.Monday);
Settings:
CellDuration="1440"
In this case, it's necessary to set the Days property manually:
DayPilotScheduler1.StartDate =
new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1);
DayPilotScheduler1.Days =
DateTime.DaysInMonth(DateTime.Today.Year, DateTime.Today.Month);
This view doesn't show event name (DataTextField is bound to an empty column).
Settings:
DurationBarVisible="false"
EventBackColor="#4A71CE"
In the timeline view, the resources are replaced with events in the row headers. There is always just one event per row.
Settings:
DurationBarVisible="false"
EventBackColor="#CA2A50"
NonBusinessHours="HideIfPossible" mode fixed) | You must Sign In to use this message board. | |||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 20 Apr 2009 Editor: Deeksha Shenoy |
Copyright 2008 by Dan Letecky Everything else Copyright © CodeProject, 1999-2009 Web22 | Advertise on the Code Project |