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

focused Date not set in calendar.selectDates()

1 Answer 45 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Akil
Top achievements
Rank 1
Akil asked on 14 Aug 2010, 07:49 AM
   function Fill(a, b) {
        var selectDates = new Array();
        var i = 0;
        //b.setDate(b.getDate() - 1);
        var selectDate = b;        
        while (i <= a) {
            var newTripplet = [selectDate.getFullYear(), selectDate.getMonth(), selectDate.getDate()];
           
            selectDates[i] = newTripplet;
            selectDate.setDate(selectDate.getDate() + 1);           
            i++;
        }
        alert(selectDates);

        calen = $find("<%=CalendarSearchRoom.ClientID %>");
        calen.unselectDates(calen.get_selectedDates());
        
        calen.selectDates(selectDates, true);

    }

if I click on particular date then all nights are selected but not selected which I click

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 18 Aug 2010, 03:23 PM
Hi Akil,

Could you please elaborate a bit more on your application? What is the exact functionality you need to achieve using the provided script?


Kind regards,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Calendar
Asked by
Akil
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or