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
13 years ago.

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

Comment posted by jjsabe
13 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
13 years ago.

Thanks, that worked great!

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