Home Unanswered Active Tags New Question

DayPilot Pro - Set Event BackColors stored in database

Hi,

I am loving this control, but am having problems trying to figure out how to set the backcolor of events when the backcolor is coming from the datasource.

I have tried using BeforeEventRender, but cannot get the value of the tag field.

Is this something I can do in the Pro version? If yes, how do I do it?

Thanks

Asked by Anonymous 1 year ago.
Replies

I've resolved this by setting the DataTagFields="id, background", where background isa fieldcomming from the data source. Then, in the BeforeEventRender I've used e.BackgroundColor = "" + e.Tag["background"]

Let me know if it works for you!

Comment posted by jjsabe 1 year ago.

Thanks, that worked great!

Comment posted by Anonymous 1 year ago.
New Reply
This reply is
Your name (optional):

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