Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to display custom scale with different working time and cell duration for different week days

$
0
0

This example demonstrates how to create a custom scale that meets the following requirements:

1. Working days: visible time from 7AM till 9PM, time cell duration is 12 minutes;

2. Saturday: visible time from 9AM till 8PM, time cell duration is 20 minutes;

3. Sunday: visible time from 12AM till 3PM, time cell duration is 30 minutes.

This approach is based on overriding the Floor, GetNextDate and HasNextDate methods in a custom TimeScaleFixedInterval descendant.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>