Event color based on section_id

How do I color code vents based on the section_id? For example if section_id = 1721 then color all these events red, if section_id =1401 the those events are green etc.

I have a color field in the database I can use also.

I know it can be done as I have seen it in the demos.

Any help?

Heres my scheduler code.

 
 
		<div class="dhx_cal_header"> </div>
		<div class="dhx_cal_data"> </div>
	</div>
</div>

Hi,
you need to create css class for each section and assign it to event with .event_class template
Here is related doc
docs.dhtmlx.com/doku.php?id=dhtm … appearance