In this tutorial, You will learn the basic knowledge on how to utilize the javascript programming to access the Telerik Rad Calendar control.
The following are the quick code snippets accessing or controlling RadCalendar using javascript.
How to get the selected date value from a RadCalendar control?
var txtDate = $find("<%= txtDate.ClientID %>"); var selectedDate = txtDate.get_selectedDate(); console.log("The selected date is : " + selectedDate);
How to set a date value to a RadCalendar control?
var txtDate = $find("<%= txtDate.ClientID %>"); txtDate.get_selectedDate(new Date());
How to disable a RadCalendar control?
var txtDate = $find("<%= txtDate.ClientID %>"); txtDate.get_dateInput().disable();
How to set a minimum date or maximum date to a RadCalendar control?
var txtDate = $find("<%= txtDate.ClientID %>"); txtDate.set_minDate(new Date()); txtDate.set_maxDate(new Date());