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
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