Skip to main content
A newer version of this page is available.
All docs
V19.1

CellsAutoHeightOptions.Enabled Property

Gets or sets whether the height of a time cell should be automatically adjusted to fit appointments.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.1.Core.dll

Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public bool Enabled { get; set; }

Property Value

Type Default Description
Boolean **false**

true to switch auto height adjustment on; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to Enabled
GanttView
TimelineView

Remarks

The Timeline and Gantt views can automatically change the resource height to fit the content in the grouped mode (SchedulerControl.GroupType is set to the SchedulerGroupType.Resource). While the number of resources that are simultaneously displayed on the screen is constant and the number of appointments assigned to each resource is different, the height of each resource can be automatically changed to fit resource appointments and free space can be reallocated to display as many appointments as possible. Use the CellsAutoHeightOptions.MinHeight property to specify the minimum resource height that can be set when reallocating free space in a view.

CellsAutoHeight

When the Enabled option is off, some appointments in a row can be hidden. In this situation, you can scroll a particular row if the TimelineView.TimelineScrollBarVisible is set to true to see all appointments. To adjust the number of visible appointments, you can specify the SchedulerViewBase.AppointmentHeight value.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Enabled property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also