Esempio n. 1
0
 protected void DayPilotScheduler1_BeforeTimeHeaderRender(object sender, DayPilot.Web.Ui.Events.BeforeTimeHeaderRenderEventArgs e)
 {
     if (e.Level == 1)
     {
         e.InnerHTML = String.Format("Week {0}", Week.WeekNrISO8601(e.Start));
     }
 }
    protected void DayPilotScheduler1_BeforeTimeHeaderRender(object sender, DayPilot.Web.Ui.Events.BeforeTimeHeaderRenderEventArgs e)
    {
        if (e.Level == 0)
        {
            DateTime point1 = e.Start.AddDays(10);
            DateTime point2 = e.Start.AddDays(20);

            e.Areas.Add(new Area().Top(0).Bottom(0).Start(e.Start).End(point1).Style("box-sizing: border-box; border-right: 1px solid #ccc").Html("1/3 of " + e.InnerHTML).Visible());
            e.Areas.Add(new Area().Top(0).Bottom(0).Start(point1).End(point2).Style("box-sizing: border-box; border-right: 1px solid #ccc").Html("2/3 of " + e.InnerHTML).Visible());
            e.Areas.Add(new Area().Top(0).Bottom(0).Start(point2).End(e.End).Style("box-sizing: border-box; border-right: 1px solid #ccc").Html("3/3 of " + e.InnerHTML).Visible());

            e.InnerHTML = "";
        }
    }
Esempio n. 3
0
 protected void DayPilotScheduler1_BeforeTimeHeaderRender(object sender, DayPilot.Web.Ui.Events.BeforeTimeHeaderRenderEventArgs e)
 {
 }