search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

DayPilot Pro - Set Event BackColors stored in database

Asked by Anonymous
11 years ago.


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?


Comment posted by jjsabe
11 years ago.

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 Anonymous
11 years ago.

Thanks, that worked great!

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.