I am coding a calendar that has to color code the days depending on their state. A day can have five possible states.
The way I am doing this is by overriding the DayRender method on serverside and adding the css style to the cell's CssClass collection like this:
|c.CssClass = registeredHours >= capasity
The result in HTML is this:
|<td class="radCalDefault_SSN Calendar_Day_NoCapacity" ...>
My problem is that when I select one day the calendar empties the class attribute of the cell with a client side script and puts the "radCalSelect_SSN" css class instead. The result is this:
|<td class="radCalSelect_SSN" ...>
And because my css class gets removed, the day loses its color coding when it is selected.