Duration bar

Disabling the duration bar

<DayPilot:DayPilotCalendar runat="server"
DurationBarVisible="false"
...
/>

Custom width

<DayPilot:DayPilotCalendar runat="server"
DurationBarWidth="10"
...
/>

Custom color

<DayPilot:DayPilotCalendar runat="server"
DurationBarColor="Red"
...
/>

Custom image

<DayPilot:DayPilotCalendar runat="server"
DurationBarImageUrl="tentative.png"
...
/>

Custom color (per event)

    protected void DayPilotCalendar1_BeforeEventRender(object sender, BeforeEventRenderEventArgs e)
    {
        if (e.Tag[0] == "2")
        {
            e.DurationBarColor = "red";
        }

    }

Custom image (per event)

    protected void DayPilotCalendar1_BeforeEventRender(object sender, BeforeEventRenderEventArgs e)
    {
        if (e.Tag["status"] == "tentative")
        {
            e.DurationBarImageUrl = "tentative.png";
        }

    }

 

 

 

DayPilot for ASP.NET, DayPilot for Java