protected void DayPilotCalendar1_BeforeHeaderRender(object sender, BeforeHeaderRenderEventArgs e) { if (e.Date == DateTime.Today) { e.BackgroundColor = "#E8BBAC"; } }
protected void DayPilotCalendar1_BeforeHeaderRender(object sender, BeforeHeaderRenderEventArgs e) { if (DayPilotCalendar1.ViewType == ViewTypeEnum.Days) { e.Html = e.Date.ToString("d MMMM yyyy"); } }
protected void DayPilotScheduler1_BeforeResHeaderRender(object sender, BeforeHeaderRenderEventArgs e) { DataItemWrapper task = e.DataItem; string name = (string)task["AssignmentNote"]; int id = Convert.ToInt32(task["AssignmentId"]); string resource = Convert.ToString(task["ResourceName"]); string status = Convert.ToString(task["AssignmentStatus"]); TimeSpan duration = TimeSpan.FromMinutes(Convert.ToInt32(task["AssignmentDuration"])); string durationString = duration.ToHourMinuteString(); string spentString = Binder.Get(task, "AssignmentDurationReal").IsNotNull ? Binder.Get(task, "AssignmentDurationReal").TimeSpanFromMinutes.ToHourMinuteString() : String.Empty; e.InnerHTML = TaskLink(name, id, status); e.Columns[0].InnerHTML = "<div style='text-align:right'>" + durationString + "</div>"; e.Columns[1].InnerHTML = "<div style='text-align:right'>" + spentString + "</div>"; e.Columns[2].InnerHTML = resource; }
protected void DayPilotCalendar1_BeforeHeaderRender(object sender, BeforeHeaderRenderEventArgs e) { }
protected void DayPilotMonth1_BeforeHeaderRender(object sender, BeforeHeaderRenderEventArgs e) { }
protected void DayPilotCalendar1_BeforeHeaderRender(object sender, BeforeHeaderRenderEventArgs e) { e.Areas.Add(new Area().Right(1).Top(0).Width(17).Bottom(1).CssClass("resource_action_menu").Html("<div><div></div></div>").JavaScript("alert(e.date);")); }
protected void DayPilotCalendar1_BeforeHeaderRender(object sender, BeforeHeaderRenderEventArgs e) { e.Html += " adding some longer text so the autofit can be tested"; }