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

[Solved] Rad Calendar multiselect not working

1 Answer 154 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
jeevitha
Top achievements
Rank 1
jeevitha asked on 16 Nov 2009, 08:23 AM
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

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 16 Nov 2009, 04:04 PM
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.
Tags
Calendar
Asked by
jeevitha
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or