Hi,
I am exploring DayPilot using DayPilotProTrial 7.6.3006.
I created a OnBeforeCellRender event to change the background colour but it did not change.
My aspx page contains:
<DayPilot:DayPilotCalendar ID="DayPilotCalendar" runat="server"
DataStartField="eventStart" DataEndField="eventEnd"
DataTextField="eventDescription" DataValueField="id"
CssOnly="true"
CssClassPrefix="calendar_green"
HeaderDateFormat = "dd/MM/yyyy (ddd)"
HeaderHeight = "27"
CellDuration="10"
CellHeight="20"
DayBeginsHour="7"
DayEndsHour="18"
HourWidth="100"
HeightSpec="Fixed"
Height="452"
BubbleID="DayPilotBubble"
OnCommand="DayPilotCalendar_OnCommand"
OnBeforeEventRender="DayPilotCalendar_OnBeforeEventRender"
OnBeforeCellRender="DayPilotCalendar_OnBeforeCellRender"
EventClickHandling="JavaScript"
EventClickJavaScript="eventClick(e)"
/>
and my aspx.cs page contains:
protected void DayPilotCalendar_OnBeforeCellRender(object sender, DayPilot.Web.Ui.Events.BeforeCellRenderEventArgs e)
{
e.BackgroundColor = "#FFF2CC";
}
Will appreciate your help on this matter!