I have a RadCalendar initialized as follows:
<telerik:RadCalendar ID="radCalendar" runat="server" AutoPostBack="true"
Skin="Special" EnableEmbeddedSkins="false"
EnableMonthYearFastNavigation="false" NavigationNextToolTip="Next Month" NavigationPrevToolTip="Last Month"
DayNameFormat="Short" ShowRowHeaders="false" ShowOtherMonthsDays="false"
OnDefaultViewChanged="RadCalendar1_DefaultViewChanged" OnDayRender="RadCalendar1_DayRender" >
My code behind handles calling a web service and populating the correct events into each day. What I want to be able to achieve is limiting the user from jumping ahead more than three months into the future. I know you can achieve this by the following line of code:
radCalendar.RangeMaxDate = now.AddMonths(3);
However, when the user clicks on next month to progress to say the 4th month the calendar is popping up a Javascript alert informing the user of an invalid date? Is there a way to turn that off or better, is there a way to either customize the message or to have the calendar navigation controls hide (per direction hopefully) when you hit the Min/Max Date for the calendar?
What I would like is for the user to never be able to look at a month in the past and only be able to view months within a 3 month window but without the default Javascript alert that pops up.
Any thoughts?
Thanks,
Derek
<telerik:RadCalendar ID="radCalendar" runat="server" AutoPostBack="true"
Skin="Special" EnableEmbeddedSkins="false"
EnableMonthYearFastNavigation="false" NavigationNextToolTip="Next Month" NavigationPrevToolTip="Last Month"
DayNameFormat="Short" ShowRowHeaders="false" ShowOtherMonthsDays="false"
OnDefaultViewChanged="RadCalendar1_DefaultViewChanged" OnDayRender="RadCalendar1_DayRender" >
My code behind handles calling a web service and populating the correct events into each day. What I want to be able to achieve is limiting the user from jumping ahead more than three months into the future. I know you can achieve this by the following line of code:
radCalendar.RangeMaxDate = now.AddMonths(3);
However, when the user clicks on next month to progress to say the 4th month the calendar is popping up a Javascript alert informing the user of an invalid date? Is there a way to turn that off or better, is there a way to either customize the message or to have the calendar navigation controls hide (per direction hopefully) when you hit the Min/Max Date for the calendar?
What I would like is for the user to never be able to look at a month in the past and only be able to view months within a 3 month window but without the default Javascript alert that pops up.
Any thoughts?
Thanks,
Derek