Definition
Namespace:Telerik.Web.UI
Inheritance: Telerik.Web.UI.SchedulerResourceCollection
Methods
Adds the specified resource to the collection.
add(Telerik.Web.UI.SchedulerResource resource): void
The resource to add.
Clears the collection of all resources in it.
clear(): void
Creates a shallow copy of the collection
clone(): Telerik.Web.UI.SchedulerResourceCollection
Telerik.Web.UI.SchedulerResourceCollection
A shallow copy of the current collection
Returns a collection of resources that satisfy the specified predicate. The resource is passed as first argument of the predicate. If the predicate returns true the resource is included in the result collection.
findAll(Function predicate): Telerik.Web.UI.SchedulerResourceCollection
The function to execute for each resource in the collection. For example function
Returns:Telerik.Web.UI.SchedulerResourceCollection
A collection of all resources matching the predicate
Executes the specified function for each resource in the collection. The resource is passed as first argument to the function.
forEach(Function lambda): void
The function to execute for each resource in the collection. For example function
Gets the number of resources in the collection.
get_count(): Number
Number
The number of resources in the collection
Gets the resource at the specified index in the collection.
getResource(Number index): Telerik.Web.UI.SchedulerResource
The index from which to retrieve the resource
Returns:Telerik.Web.UI.SchedulerResource
The resource at the specified index.
Gets the first resource of the specified type.
getResourceByType(String type): Telerik.Web.UI.SchedulerResource
The resource type for which to look for
Returns:Telerik.Web.UI.SchedulerResource
The first resources of the specified type
Gets the resource of the specified type with the specified key.
getResourceByTypeAndKey(String type, String key): Telerik.Web.UI.SchedulerResource
The resource type for which to look for
keyStringThe resource key for which to look for
Returns:Telerik.Web.UI.SchedulerResource
The resources of the specified type with the specified key
Gets a collection of all resources of the specified type.
getResourcesByType(String type): Telerik.Web.UI.SchedulerResourceCollection
The resource type for which to look for
Returns:Telerik.Web.UI.SchedulerResourceCollection
A collection of all resources of the specified type
Gets the index of the specified resource in the collection. Returns -1 if the resource is not in the collection.
indexOf(Telerik.Web.UI.SchedulerAppointment appointment): Number
The appointment for which to search in the collection
Returns:Number
The index of the specified appointment in the collection
Inserts the specified resource at the specified index in the collection.
insert(Number index, Telerik.Web.UI.SchedulerResource resource): void
The index at which to insert the resource
resourceTelerik.Web.UI.SchedulerResourceThe resource to add.
Removes the specified resource from the collection.
remove(Telerik.Web.UI.SchedulerResource resource): void
The resource instance to remove.
Removes the resource at the specified index from the collection.
removeAt(Number index): void
The index from which to remove the resource
Removes the resources with the specified type from the collection.
removeResourcesByType(String resourceType): void
The resource type to remove.