Scheduler: Row Header Columns
The resource (row) header can display multiple columns.
The additional columns can be enabled by specifying the column widths using RowHeaderColumnWidths property:
<%= Html.DayPilotScheduler("dps_rowheadercolumns", new DayPilotSchedulerConfig {
BackendUrl = ResolveUrl("~/Scheduler/Backend"),
RowHeaderColumnWidths = "120,60,60"
})%>It accepts a comma-separated list of integer values (widths in pixels).
It must specify the widths of all columns, including the first (default) one. In order to add one additional column, use two values:
RowHeaderColumnWidths = "120,60"
You may want to adjust the total row header width using RowHeaderWidth property. The value should correspond to the total of all columns widths:
RowHeaderColumnWidths = "120,60",
RowHeaderWidth="180"
The content of the additional columns can be changed using Resource.Columns collection:
class Dps : DayPilotScheduler
{
//private bool useViewPort;
protected override void OnInit(InitArgs ea)
{
Resource r = new Resource("Room A", "A");
r.Columns.Add(new ResourceColumn("Col A"));
r.Columns.Add(new ResourceColumn("Col B"));
Resources.Add(r);
UpdateWithMessage("Initialized.", CallBackUpdateType.Full);
}
}