Home Unanswered Active Tags New Question

How to change Event Font Color dinamically

I need change the event font color dinamically for some events, I can do it for Event BackColor, How can I do this for event font color? this is my code: protected void DayPilotCalendar1_BeforeEventRender(object sender, BeforeEventRenderEventArgs e) { if (Int32.Parse(e.Tag[3].ToString()) == 1) e.BackgroundColor = '#eeeeee'; else e.BackgroundColor = "#ffffff"; }
Asked by Didier Rodríguez 3 years ago.
Replies

You shoud use e.InnerHTML property and wrap the event text in a div with style or class attribute defined.

Comment posted by Dan Letecky 3 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java