The Hotel Room Booking tutorial was updated.
New features:
Feature summary:
You can download the sample project with C# and VB source code.
Test the tutorial project in an online demo.

The Scheduler control displays three columns (Room, Size, Status):
<DayPilot:DayPilotScheduler
ID="DayPilotScheduler1"
runat="server"
...
>
<HeaderColumns>
<DayPilot:RowHeaderColumn Title="Room" Width="80" />
<DayPilot:RowHeaderColumn Title="Size" Width="80" />
<DayPilot:RowHeaderColumn Title="Status" Width="80" />
</HeaderColumns>
</DayPilot:DayPilotScheduler>The status is set using BeforeResHeaderRender event handler and custom CSS classes:
C#
protected void DayPilotScheduler1_BeforeResHeaderRender(object sender, BeforeResHeaderRenderEventArgs e)
{
string status = (string)e.DataItem["RoomStatus"];
switch (status)
{
case "Dirty":
e.CssClass = "status_dirty";
break;
case "Cleanup":
e.CssClass = "status_cleanup";
break;
}
}VB
Protected Sub DayPilotScheduler1_BeforeResHeaderRender(ByVal sender As Object, ByVal e As BeforeResHeaderRenderEventArgs)
Dim status As String = CStr(e.DataItem("RoomStatus"))
Select Case status
Case "Dirty"
e.CssClass = "status_dirty"
Case "Cleanup"
e.CssClass = "status_cleanup"
End Select
End Sub