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

[Solved] How can I get Whole AppointmentCollection

1 Answer 75 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Egor
Top achievements
Rank 1
Egor asked on 14 Sep 2009, 10:36 AM
Hello,

    as the KB of the scheduler and the Client-side objects API says the  scheduler.get_appointments() method returns the SchedulerAppointmentCollection  only of the current viewed appointments on current scheduler selected view.
(from here: RadScheduler - clientside obj )

As my implementation requires the control on WHOLE collection, how can i obtain such thing?

example:  i'm on current day  X  and i need to get appointments in range (start, end) on day X+3. I got range of hours start and end of the day X+3.   If being on selected view "day" of day X and I use scripts like this:

var result = myScheduler.get_appointments().getAppointmentsInRange(start, end);

IS WRONG, because myScheduler.get_appointments() gets the SchedulerAppointmentCollection  of the DAY X (not the X+3), of course because the selected view is setted on day X and the method returns this.

the functionality of this method is correct, working as it supposed to do. But I need the correct SchedulerAppointmentCollection  for the day X+3 (different from the selected one on current selected view "day".

Best regards, Egor.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 15 Sep 2009, 03:01 PM
Hi Egor,

I see what you mean, but the get_appointments() method will return only appointments that are actually rendered. This is by design and it cannot be overcome.


Kind regards,
Peter
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
Scheduler
Asked by
Egor
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or