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

[Solved] findByResource

1 Answer 82 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 26 May 2009, 08:37 PM
In the Scheduler/Resource Availability Demo there's a method on theSchedulerAppointmentsCollection called findByResource
function getAppointmentsInRangeByResource(scheduler, start, end, resource, appointment)
            {
                //Get all appointments within the specified time period
                var result = scheduler.get_appointments().getAppointmentsInRange(start, end);
                
                //If specified remove the appointment from the appointment list
                if (appointment)
                    result.remove(appointment);
                
                //Filter the appointments based on the resource
                return result.findByResource(resource);
            }

which is used to filter the collection.

I can't find any documentation about this method.  The list of methods on this object doesn't include it.

have the docs not been updated?  Am I looking in the wrong spot?

Thanks
Tom

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 27 May 2009, 09:18 AM
Hello Tom,

Thank you for your feedback.

Technically speaking, the help article is correct since it claims to list "...most important methods of the SchedulerAppointmentCollection client-side object". I agree with you that "findByResource" should be also listed since it is a key method.

I have updated the help topic as well as your telerik points for your involvement.  


Best wishes,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Scheduler
Asked by
Tom
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or