New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Definition

Namespace:Telerik.Web.UI

Inheritance: Telerik.Web.UI.SchedulerResourceCollection

Methods

Adds the specified resource to the collection.

JS
add(Telerik.Web.UI.SchedulerResource resource): void
Parameters:resourceTelerik.Web.UI.SchedulerResource

The resource to add.

Clears the collection of all resources in it.

JS
clear(): void

Creates a shallow copy of the collection

JS
clone(): Telerik.Web.UI.SchedulerResourceCollection
Returns:

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.

JS
findAll(Function predicate): Telerik.Web.UI.SchedulerResourceCollection
Parameters:predicateFunction

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.

JS
forEach(Function lambda): void
Parameters:lambdaFunction

The function to execute for each resource in the collection. For example function

Gets the number of resources in the collection.

JS
get_count(): Number
Returns:

Number

The number of resources in the collection

Gets the resource at the specified index in the collection.

JS
getResource(Number index): Telerik.Web.UI.SchedulerResource
Parameters:indexNumber

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.

JS
getResourceByType(String type): Telerik.Web.UI.SchedulerResource
Parameters:typeString

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.

JS
getResourceByTypeAndKey(String type, String key): Telerik.Web.UI.SchedulerResource
Parameters:typeString

The resource type for which to look for

keyString

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

JS
getResourcesByType(String type): Telerik.Web.UI.SchedulerResourceCollection
Parameters:typeString

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.

JS
indexOf(Telerik.Web.UI.SchedulerAppointment appointment): Number
Parameters:appointmentTelerik.Web.UI.SchedulerAppointment

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.

JS
insert(Number index, Telerik.Web.UI.SchedulerResource resource): void
Parameters:indexNumber

The index at which to insert the resource

resourceTelerik.Web.UI.SchedulerResource

The resource to add.

Removes the specified resource from the collection.

JS
remove(Telerik.Web.UI.SchedulerResource resource): void
Parameters:resourceTelerik.Web.UI.SchedulerResource

The resource instance to remove.

Removes the resource at the specified index from the collection.

JS
removeAt(Number index): void
Parameters:indexNumber

The index from which to remove the resource

Removes the resources with the specified type from the collection.

JS
removeResourcesByType(String resourceType): void
Parameters:resourceTypeString

The resource type to remove.

Not finding the help you need?
Contact Support