G
Gilles Muys
For an unknown reason, my calendar control automatically adds a style
attribute to the cell of the selected day. This style attribute is:
style="color:White;background-color:Silver;width:14%;"
In my DayRender event handler, I set the CssClass of the cell of the
selected day to "DaySelected". This CssClass has completely different colors
than the style attribute mentionned above. The rendered output is the
following:
<td class="DaySelected" align="Center"
style="color:White;background-color:Silver;width:14%;">
So the CssClass is properly changed, but the style attribute overrides its
settings. I have added SelectedDayStyle-CssClass="DaySelected" in the ASPX
code, but this did not help.
Since I have not requested this style attribute to be added in any manner, I
assume that the Calendar control itself is doing this. How can I prevent
this from happening?
TIA
Gilles
attribute to the cell of the selected day. This style attribute is:
style="color:White;background-color:Silver;width:14%;"
In my DayRender event handler, I set the CssClass of the cell of the
selected day to "DaySelected". This CssClass has completely different colors
than the style attribute mentionned above. The rendered output is the
following:
<td class="DaySelected" align="Center"
style="color:White;background-color:Silver;width:14%;">
So the CssClass is properly changed, but the style attribute overrides its
settings. I have added SelectedDayStyle-CssClass="DaySelected" in the ASPX
code, but this did not help.
Since I have not requested this style attribute to be added in any manner, I
assume that the Calendar control itself is doing this. How can I prevent
this from happening?
TIA
Gilles