Edit this page

OnLoad

The OnLoad client-side event handler is called when the calendar is loaded on the client.

The event handler receives one argument:

  1. the RadCalendar object that fired the event.

The following example uses the OnLoad event to navigate to December when the page loads:

<telerik:RadCalendar RenderMode="Lightweight" ID="RadCalendar1" runat="server">
    <ClientEvents OnLoad="navigateToDecember"  />
</telerik:RadCalendar>          
function navigateToDecember(sender) {
    var todaysDate = new Date();
    var triplet;

    if (todaysDate.getMonth() != 11) {
        triplet = [todaysDate.getFullYear() - 1, 12, 25];
    }
    else {
        triplet = [todaysDate.getFullYear(), 12, 25];
    }

    sender.navigateToDate(triplet);
}

See Also