Hi to all
this is my code how to generate special days in code behind
How can i show the current date in special days collection ?
this is my code how to generate special days in code behind
private void Page_Load(object sender, EventArgs e) { var dc = new takvimDataContext( "Data Source=xxx;"); var sDays = from tkvm in dc.takvims where tkvm.tarih.Year == RadCalendar1.Calendar.GetYear(RadCalendar1.CalendarView.ViewStartDate) select tkvm; foreach (var day in sDays) { var rcd = new RadCalendarDay {Date = day.tarih,TemplateID = "tatil"}; RadCalendar1.SpecialDays.Add(rcd); var cl = RadCalendar1.Calendar; } and my problem is
i cant display specials days numbers in calendar
they are all empty (In template i make red background to specials days to see are they working ?)
when i try to fill them in template
<CalendarDayTemplates> <telerik:DayTemplate ID="tatil" runat="server"> <Content> <div style="background-color:Red"> <%= RadCalendar1.????????????%> </div> </Content> </telerik:DayTemplate> </CalendarDayTemplates>How can i show the current date in special days collection ?