How can I set the FocusedDate to January 1 of the current year? I have tried a JavaScript function, but the calendar will have the current month as the first month.
The JavaScript is
function navigateToJanuary(sender) {
var todaysDate = new Date();
var triplet;
triplet = [todaysDate.getFullYear(), 01, 01];
sender.navigateToDate(triplet);
}
I put an alert box to verify that I am getting the correct date. 2016,1,1
I have in the RadCalendar
<ClientEvents OnLoad="navigateToJanuary" />
Am I using the wrong client event?