I am having some issue with the IsSelectable field on a day. I am setting e.Day.IsSelected = false in the DayRender server event handler but then when a date is selected using the client side DateSelecting event, it always says true, even in the most simple example. I found this thread from 1/2009 where a Telerik representative said the issue had been elevated and would be corrected quickly. Am I doing something wrong, or is this still an issue with the Calendar? Is there a workaround available?
C#:
Javascript:
C#:
protected
void
RadCalendar1_DayRender(
object
sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
{
e.Day.IsSelectable =
false
;
}
Javascript:
function
Calendar_OnDateSelecting(sender, args) {
args.set_cancel(
true
);
alert(args.get_renderDay().get_isSelectable());
}