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