Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Collapse]Scheduler
   [Expand]Getting Started
   [Expand]Appointments
    Resources
    Reminders
   [Expand]Views
   [Expand]Visual Elements
   [Expand]Styles and Templates
   [Expand]Design-Time Features
    Time Zones
   [Expand]Data Binding
    Grouping
    Selecting
    Navigating
    Printing
    End-User Restrictions
   [Expand]Examples
    Migration Guidelines
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Resources

Expanded Overview

Resources are entities associated with appointments. Resources ResourceItem class instances and they allow end-users to group and sort appointments. A scheduler resources' collection is available using the SchedulerControl.ResourceItems property.

Resources can be stored in the data source. To use them in a scheduler, bind a data source to the DataSource.ResourcesSource property and specify the required DataSource.ResourceMappings.

Expanded Resource Sharing

Resource sharing means that an appointment is associated with several resources. To enable resource sharing, set the DataSource.ResourceSharing property to true. Resources can be:

  • Not Shared

    To assign an appointment to a particular resource, set the appointment's AppointmentItem.ResourceId property to the appropriate resource's ResourceItem.Id value. A resource can be linked with several appointments, as illustrated in the image below.

  • Shared

    To assign an appointment to several resources, add their ResourceItem.Id property values to the appointment's AppointmentItem.ResourceIds collection.

    The image below demonstrates shared resources.

Note

If an appointment doesn't belong to any particular resource (the AppointmentItem.ResourceId property is set to the EmptyResourceId), it is considered assigned to all resources. Hence, this appointment is shown for all resources.

Expanded Grouping by Resources

A resource becomes visible in the scheduler grouped by either resources (the SchedulerControl.GroupType is set to the SchedulerGroupType.Resource value ) or dates (the SchedulerControl.GroupType is set to the SchedulerGroupType.Date value).

Note

If the ResourceItem.Visible property of any resource is set to false, and the scheduler is grouped by resources or dates, all appointments that belong to this resource are hidden.

The following images demonstrate the Day View when appointments are grouped by a resource...

... and a date:

In the grouped Timeline View, resources are shown vertically on the left.

The Resource Navigator control is automatically displayed in the scheduler's bottom right corner when grouping is enabled. The control allows end-users to scroll through resources and change the number of resources shown on the screen at once.

Use each View's ViewBase.ResourcesPerPage property to specify the number of resources it shows on a screen.

Expanded Member Table

Member

Description

SchedulerControl.ResourceItems Provides access to the collection of resources for appointments.
SchedulerControl.VisibleResources Provides access to the collection of currently visible resources.
SchedulerControl.SelectedResource Gets or sets the resource currently selected in the scheduler.
SchedulerControl.SelectedResourceSource Gets or sets the source object for the selected resource.
SchedulerControl.GetResourceItemBySourceObject Returns a resource associated with the specified source object.

Is this topic helpful?​​​​​​​