windowsforms-11630-controls-and-libraries-scheduler-examples-rangecontrol-how-to-use-rangecontrol-in-a-scheduling-application.md
This document describes how to add a RangeControl instance to a scheduling application, associate it with a SchedulerControl object, and expose the necessary API in order to customize RangeControl behavior and appearance.
Create an application with SchedulerControl bound to resource and appointment data. Switch off data grouping by setting the SchedulerControl.GroupType property to SchedulerGroupType.None.
To arrange RangeControl and SchedulerControl controls on the form, set the RangeControl.Dock property to Top and select Send to Back from the RangeControl’s context menu at design time.
Run the project and try the interaction between RangeControl and SchedulerControl. You can scroll and navigate through several months in the scheduler using an intuitive UI provided by RangeControl.
These characteristics of the interaction between SchedulerControl and RangeControl are specified via default values of special options that become available after RangeControl and SchedulerContorl are integrated. Use these options to customize RangeControl and SchedulerControl behavior when these controls are integrated.
Once RangeControl and SchedulerControl are integrated, a number of options allowing you to specify the behavior and appearance of these controls become available. These options are accessed via SchedulerControl.OptionsRangeControl or (if the RangeControl.Client property is set to a SchedulerControl object) via RangeControl.ClientOptions.
Use the following properties of the SchedulerOptionsRangeControl object for flexible customization of interaction between RangeControl and SchedulerControl.
AllowChangeActiveView
AutoAdjustMode
AutoFormatScaleCaptions
DataDisplayType
MaxSelectedIntervalCount
MinIntervalWidth
RangeMinimum and RangeMaximum
Scales
ThumbnailHeight
See Also
How to: Create a Simple Scheduling Application with RangeControl via the Project Template