Why does the Rad Calendar ignore my !important fore-color?
It seems that some JavaScript code runs and overrides the style? Very frustrating!
I have the following code:
It seems that some JavaScript code runs and overrides the style? Very frustrating!
I have the following code:
string cssOutOfRange = "calOutOfRange";
// clear the default cell content (anchor tag) as we need to disable the hover effect for this cell e.Cell.Text = string.Empty; e.Cell.CssClass = cssOutOfRange; //set new CssClass for the disabled calendar day cells (e.g. look like other month days here) // render a span element with the processed calendar day number instead of the removed anchor -- necessary for the calendar skinning mechanism Label label = new Label(); label.Text = e.Day.Date.Day.ToString(); e.Cell.Controls.Add(label); // disable the selection for the specific day RadCalendarDay calendarDay = new RadCalendarDay(); calendarDay.Date = e.Day.Date; calendarDay.IsSelectable = false; calendarDay.ItemStyle.CssClass = cssOutOfRange; rdpDate.Calendar.SpecialDays.Add(calendarDay);.calOutOfRange, span.calOutOfRange { color: #FF0000 !important; }