1. I have Daypilot Month and in this event, I have this code
protected void DayPilotMonth1_BeforeEventRender(object sender, DayPilot.Web.Ui.Events.Month.BeforeEventRenderEventArgs e)
e.CssClass = "CalendarEventCellCustom";
2. I have the css file in a folder --> Inside/assets/css/CalendarEventCellCustom.css
3. In the CSS, I have this
4. I run the page, and I don't see the CSS applied.
5. *If I do this, the CSS is loaded. Adding it to the aspx page:
<link href="../../Inside/assets/css/CalendarEventCellCustom.css" rel="stylesheet" />
But this defeats the purpose. I want to load the CSS in BeforeEventRender based on some conditions. Putting it in aspx page applies it to everything.
So, why doesn't e.CssClass = "CalendarEventCellCustom"; work?