Event coloring customization

Hello,
I have a tree on left frame and on clicking nodes of that tree i show the events linked with it on the right frame.I have different colors for the nodes generated randomly when i click it.I want my events to be colored with the same color of the tree node which is being clicked.Please help.
vidhya

You can use event_class template to assign css class , based on some property of event.

samples\02_customization\01_events_coloring.html

If you need to change color dynamically. Just change the property of event and force repainting of view ( by scheduler.setCurrentView(scheduler._date) )