Scheduler: Separators

separators.png

Separators are vertical lines inserted at specified time points.

You can manage separators using Separators property.

Appearance

  • Location (time position)
  • Color (color)
  • Width (width in pixels)
  • Layer (above or below the events)
  • Opacity (opacity in percent)

Examples

ASPX

<DayPilot:DayPilotScheduler ID="DayPilotScheduler1" runat="server" ... >
  ...
  <Separators>
    <DayPilot:Separator Color="green" Location="02/01/2008 12:00:00" />
    <DayPilot:Separator Color="green" Location="02/03/2008 12:00:00" />
    <DayPilot:Separator Color="red" Location="02/02/2008 00:00:00" />
  </Separators>
</DayPilot:DayPilotScheduler>

Custom Separator

calendar-separator-241x181.png

// Red separator with 50% opacity placed at the current day with width equal to CellWidth, shown above events
DayPilotScheduler1.Separators.Add(DateTime.Today, Color.Red, SeparatorLayer.AboveEvents, DayPilotScheduler1.CellWidth, 50);

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