IMG-LOGO

Learn how to use client side javascript programming to access Telerik RadCalendar control

andy - 29 Jun, 2016 3015 Views 0 Comment

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());

Comments

There are no comments available.

Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.

Related Articles