Prometheus Calendar Client API

2 posts, 0 answers
  1. Chris
    Chris avatar
    171 posts
    Member since:
    Oct 2006

    Posted 14 Mar 2008 Link to this post

    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
  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 17 Mar 2008 Link to this post

    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
Back to Top