I have decided to attack this a different way, but ran into a different issue now. I have decided to change the date displayed in the calendar to the user using the CalendarDayTemplate and SpecialDays. However, I am trying to add these components from the codebehind.
Here is what I have come up with:
protected void Page_Load(object sender, EventArgs e)
protected void setup_rdp()
RadCalendar cal = rdp1.Calendar;
RadCalendarDay rcd = new RadCalendarDay(cal);
DayTemplate dt = new DayTemplate();
HtmlGenericControl div = new HtmlGenericControl("DIV");
div.InnerText = "94";
div.Attributes["class"] = "centered";
dt.ID = "dt1";
rcd.Date = new DateTime(2017, 4, 1);
rcd.TemplateID = "dt1";
My intent is to use this in a loop to set all the days of the month. What am I doing wrong or is there a better way to show it. I want it to look and behave like the attached photo.