This is a migrated thread and some comments may be shown as answers.

Prometheus Calendar Client API

1 Answer 58 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 14 Mar 2008, 03:53 PM
Hi,

I am trying to set the DatePicker selected date from the client side.  However the javascript I used doesn't really work.  This is what I used.

    var newMinDate = null;
    var startCalendar = $find(startDateId);
    if (startCalendar != null)
    {
        if (newMinDate!=null)
        {
            startCalendar.selectDate(newMinDate,true);
            startCalendar.set_minDate(newMinDate);
        }
        if (newMaxDate!=null)
            startCalendar.set_maxDate(newMaxDate);
    }

The bold line breaks,  I am not able to find good documentation on what client API method, properties provided from the online doc.  please let me know what method should I call to set the textbox value and calendar selected date to the date I want from client side.

Chris

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 17 Mar 2008, 11:44 AM
Hello Chris,

To set the selected date of RadDatePicker client-side, you need to use the property set_selectedDate(). The selectDate() property you are using is of RadCalendar's properties.
  
Find more information about the client-side API of RadDatePicker in the following online help recourses:
http://www.telerik.com/help/radcontrols/prometheus/?cldClientSideAPI.html
http://www.telerik.com/help/radcontrols/prometheus/?cal_ChangesAndBackward.html

All the best,
Iana
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Calendar
Asked by
Chris
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or