Rad Calendar multiselect not working

2 posts, 0 answers
  1. jeevitha
    jeevitha avatar
    63 posts
    Member since:
    Sep 2008

    Posted 16 Nov 2009 Link to this post

    Hi,
    I am using Rad Calendar for selecting  multiple dates . I need to select many dates for some back end computation.
    I also need to bind the dates again with the calendar control while retrieving the dates from DB. I dono the exact way of achieving this. I used the following code but it giving problem in "get_selectedDates()" function. I am using the latest Version only. Pls help me
     function getSelected() {
                var d, text = '';
                var calendar = "<%= RadCalendar1.ClientID %>";
                var dates = calendar.get_selectedDates();
                for (var i = 0; i < dates.length; i++) {
                    var date = dates[i];
                    d = date[1] + '/' + date[2] + '/' + date[0];

                    if (i == dates.length - 1) {
                        text = text + d;
                    }
                    else {
                        text = d + ',' + text;
                    }
                }
                var textbox = document.getElementById('TextBox1');
                textbox.value = text;
            } 

    Thanks,
    Jeevitha

  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 16 Nov 2009 Link to this post

    Hello Jeevitha,

    Please examine the following articles and let me know if they help you to achieve the desired functionality:
    RadCalendar Client Object
    Online Demo

    Sincerely yours,
    Pavlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top