Custom Slots
This article describes how you can create a custom SpecialSlot, add custom properties to it and bind the properties in the Slot template.
Please check here for more details about SpecialSlots.
Let's for example have the following RadScheduler grouped by "Calendar" ResourceType:
Example 1
- First, create a class which inherits Telerik.UI.Xaml.Controls.Scheduler.Slot class:
Example 2
Note how Copy and CopyFrom methods in the custom slot class are overriden!
- Then you should create the collection of BreakSlot objects and set their additional properties:
Example 3
- The next step is to create the SchedulerStyleSelector class:
Example 4
- and to define the Style:
Example 5
- Finally, bind them to SpecialSlotsSource and SpecialSlotsStyleSelector properties: