Published on: 29 June, 2016

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

Posted by andy | 572 views 0 likes 0 favourites 0 comments
Tumblr Digg Google Plus

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