Hi ,
I m using RadCalendar which is a MultiViewRows , and I am navigating Some Custom Date Selection when we click the Fast navigation. I using Client Side event but it throws Date2 must be array: [y, m, d]. Here below i show my code , please suggest me where is error.
I m using RadCalendar which is a MultiViewRows , and I am navigating Some Custom Date Selection when we click the Fast navigation. I using Client Side event but it throws Date2 must be array: [y, m, d]. Here below i show my code , please suggest me where is error.
<telerik:RadCalendar runat="server" Skin="Windows7" ID="RadCalendar1" AutoPostBack="true" TitleFormat="MMM-yy" EnableMultiSelect="false" MultiViewRows="3" MultiViewColumns="1" PresentationType="Interactive" HideNavigationControls="true" DayNameFormat="FirstTwoLetters" ShowOtherMonthsDays="false" FastNavigationStep="1" EnableNavigation="true" EnableMonthYearFastNavigation="False"> <ClientEvents OnCalendarViewChanged="CheckSelections" /> </telerik:RadCalendar>function CheckSelections(sender, eventArgs) { var selDates = sender.get_selectedDates(); var calendar = $find("<%=RadCalendar1.ClientID%>"); var dates = calendar.get_selectedDates() var date = dates[0] var year = date[0]; var month = date[1]; var day = date[2] var mydate = month + "/" + day + "/" + year mydate = DateAdd(mydate, "M", 1); var datearray = mydate.format("yyyy, M, d"); var arr = [datearray]; calendar.selectDate(arr,true); }