Hi,
I'm using the calendar and I've got a problem using the CssClass property in BeforeEventRender Method.
In my ASPX page, i've set my calendar like this :
<DayPilot:DayPilotCalendar ID="dpcEmploiDuTemps" runat="server" BusinessBeginsHour="7"
BusinessEndsHour="20" DayBeginsHour="7" DayEndsHour="20" Days="5" EventArrangement="SideBySide"
CssClassPrefix="calendar" CssOnly="true" ClientObjectName="dpcEmploiDuTemps"
DataValueField="NumeroDeroulement" DataStartField="Debut" DataEndField="Fin"
DataTextField="NomActivite" DataAllDayField="JourneeEntiere"
DataTagFields=""
ShowAllDayEvents="True"
HeightSpec="Full">
</DayPilot:DayPilotCalendar>
In my css file, I do'nt have any "calendar_allevent_inner" class (I want to set it during BeforeEventRender because this style can be changed)
In my BeforeEventRender Method, I set my cssclass like this
e.CssClass = "calendar_event_alldayevent_inner_session"
but, when I look at my calendar, there is no CSS applied to my AllDayEvent. If I do the same thing for a simple event, it works fine.
In my HTML code, my class is not applied on my event :
<div title="" class="calendar_alldayevent" style="left: 0%; top: 21px; width: 20%; height: 50px; text-align: left; line-height: 1.2; position: absolute;" unselectable="on">
Thanks for your help,
King regards,