Back to Devexpress

How to: Use RangeControl in a Scheduling Application

windowsforms-11630-controls-and-libraries-scheduler-examples-rangecontrol-how-to-use-rangecontrol-in-a-scheduling-application.md

latest3.2 KB
Original Source

How to: Use RangeControl in a Scheduling Application

  • Dec 23, 2019
  • 4 minutes to read

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.

Add RangeControl to a Project and Bind it to SchedulerControl

  1. Create an application with SchedulerControl bound to resource and appointment data. Switch off data grouping by setting the SchedulerControl.GroupType property to SchedulerGroupType.None.

  2. 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.

  3. 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.

Specify Behavior Settings of RangeControl

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

How to: Bind a Scheduler Storage to a RangeControl