Row header columns

DayPilot Scheduler can show multiple columns in the row (resource) header.

API

1. Enable multiple columns by specifying column widths using RowHeaderColumnWidths property.

RowHeaderColumnWidths="50,30,40"

Notes:

  • The first value is the width of the default (first) column.
  • The column widths are separated by commas, spaces are ignored.
  • If you specify RowHeaderColumnWidths, the RowHeaderWidth property is ignored.

2. Define the values of the additional columns using Resource.Columns collection.

Declarative way (.aspx):

<DayPilot:Resource Name="Room A" Value="A" Expanded="True">
<Columns>
<DayPilot:ResourceColumn InnerHTML="Gray" />
<DayPilot:ResourceColumn InnerHTML="25 people" />
</Columns>
</DayPilot:Resource>

Programmatic way (.aspx.cs):

DayPilotScheduler1.Resources[0].Columns.Add(new ResourceColumn("Gray"));
DayPilotScheduler1.Resources[0].Columns.Add(new ResourceColumn("25 people"));

Demo

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java