Hi I have the same problem as Babu. I have a list of dates in a data object. This data object is populated on the page load and contains a list of dates plus other information. For example: "available", "unavailable", "tentative". I want to mark the calendar days depending on these values.
Yet it seems difficult to simply find a date as an item and then work with it as, say a RadCalendar item (by iterating through each item displayed in the calendar, for example).
DayRender is not appropriated because it assumes that all the information is currently on hand at the time of the Calendar's render cycle. It does not consider the situation where the days need to be compared with a separate resource heavy dataobject which needs to be built at run time (unless I am missing something).
I would have thought an obvious need for this control (it's traditional with other telerik controls) is be able to iterate through each item in the control and perform functions on it as required (perhaps based on a dataobject like above). Or, there doesn't even seem to be a way of achieving:
var mydate = RadCalendar.FindDate(date_in)
mydate.cssclass="changeclass"
RadCalendar1.SelectedDates.Add(Date_in) is mildy useful when dealing with boolean values, but not conditional values which could produce several outcomes.
There may be ways to do this all, but from my hours of testing and documentation reading I haven't been able to establish it.
The current solution that I'm thinking is to create the separate dataobject (list of dates) before the rendering of the calendar, store it in a session, then on the DayRender event which occurs in the Clalendar rendering refer to the stored datasource in which has been placed in a session - which seems to be a very shotty way of doing it. The datasource would be resource draining and really should only be produced once, and then discarded.
Would love any advice. Thanks.