Author: cubangt | Posted on: 1/22/2010 4:11:48 PM | Views : 260

I got great help a while back on this calendar, now that we are closer to deployment, they decide they want to see a difference in the calendar. The calendar is setup to display a total of 28 days ( for payroll purposes ) current pay period and future pay period. The calendar works great.. but currently only setup to highlight those dates in pink, they want to hightlight first 14days one color and the next 14 another color.
Here is the dayrender code for the calendar, can it be changed to accomplish this? or is it more work than just the dayrender event?
protected void DayRender(Object source, DayRenderEventArgs e) { DateTime nextDate; e.Day.IsSelectable = false; if (dsPayPeriod != null) { foreach (DataRow dr in dsPayPeriod.Tables[0].Rows) { nextDate = Convert.ToDateTime(dr["CalDate"]); if (nextDate == e.Day.Dat ...

Go to the complete details ...