Custom Time Scale in RadScheduler
Environment
Product Version | 2019.3.911 |
Product | RadScheduler for WinForms |
Description
When set up in timeline view, RadScheduler can work with a time scale of predefined values: Setting the Default Time Scale. This KB article demonstrates how a custom MinutesScale class can be created working with at a scale of 5 minutes.
Solution
Create a custom scale inheriting the MinutesTimescale class and override its ScalingFactor property.
A small time scale will create more elements inside the header. In some cases the available space might not be enough and these elements may be squeezed. The DisplayedCellsCount property of the scale object determines how many elements will be simultaneously visible. The screen shot below shows 20 cells and the rest of cells can be seen using the scrollbar at the bottom.
Figure 1: Custom Time Scale