Resources
The RadScheduler allows you to define custom resources that can be assigned to the appointments. Custom resources let you associate additional information with your appointments, where the information for each field can be selected from a limited number of possibilities. For example, you can load the appointments of different users on a single scheduler by simply choosing the name of the user from a drop down. The same applies for various resources such as meeting rooms, team events, etc.
Because custom resources have a limited number of values, RadScheduler can group appointments based on the resources associated with them. For example, you can book different facilities for a variety of events. Also, the appointments can be grouped by multiple groups.
Creating ResourceTypesCollection and Populating it with ResourceType
First of all, let's set a ResourceTypesSource. Then we need to create a ResourceTypeCollection, where we can assign the ResourceType.
Example 1
Example 2
Example 3
If you want to be able to set an appointment to multiple resources you need to set the AllowMultipleSelection property of the ResourceType to true.
The order in which the Resource objects are added to the ResourceType determines the order in which the groups will be generated in the view.
Grouping appointments by Resources
Now if you want to group the appointments by Room, you can use GroupDescriptionsSource property:
Example 4
If you want to change the group order you could use the following syntax:
Example 5
Adding Resources in code behind
The whole example above can be also set up in the code behind: