Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Collapse]Scheduler
   [Expand]Product Information
   [Expand]Getting Started
   [Expand]Fundamentals
   [Collapse]Visual Elements
    [Collapse]Scheduler Control
      All-Day Area
      Appointments
      Appointment Flyout
      Dependencies
      Date Navigation Bar
      Day Headers
      Day of Week Headers
      Group Separator
      More Buttons
      Navigation Buttons
      Resource Headers
      Resource Navigator
      Status Lines
      Time Cells
      Time Ruler
      Time Indicator
      Time Scales
      Selection Bar
      Scroll More Buttons
    [Expand]Scheduler Command UI
    [Expand]Dialogs
     RangeControl
     Resources Tree
     Date Navigator
     Auxiliary Controls
     Reporting Controls
   [Expand]Design-Time Features
   [Expand]Examples
   [Expand]End-User Capabilities
   [Expand]Member Tables
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Resource Headers

The Resource Headers display information about Resources, assigned to appointments. They are visible only when the appointments are grouped by resources or dates (use the SchedulerControl.GroupType property to set grouping).

The ResourceHeader base class and its descendants - HorizontalResourceHeader and VerticalResourceHeader classes - contain the information required to paint the resource headers in different views.

The resource header contains the picture specified by the Resource.ImageBytes property (fetched from the ResourceMappingInfo.Image data field if the scheduler is bound to a data source) and the Resource.Caption text that is bound to the ResourceMappingInfo.Caption data field.

The visual layout of the header is defined by the SchedulerResourceHeaderOptions object available via the SchedulerOptionsView.ResourceHeaders property. It specifies the following parameters:

Parameter

Description

SchedulerResourceHeaderOptionsBase.Height Gets or sets the height of the resource header.
SchedulerResourceHeaderOptionsBase.ImageAlign Gets or sets the image alignment within a resource header.
SchedulerResourceHeaderOptions.ImageSize Gets or sets the size of an image which is shown within a resource header.
SchedulerResourceHeaderOptionsBase.ImageSizeMode Gets or sets the size mode of an image which is displayed within a resource header.
SchedulerResourceHeaderOptionsBase.RotateCaption Gets or sets the value indicating whether to rotate the caption's text. Set it to false to make the caption in the vertical resource headers horizontal.

The table below lists the properties and methods which affect the Resource header's appearance:

Appearance BaseHeaderAppearance.HeaderCaption provides the appearance settings for all headers except the Today header. The appearance settings used to paint the Today header are provided by the BaseHeaderAppearance.AlternateHeaderCaption property. The BaseHeaderAppearance.HeaderCaptionLine contains settings used to paint the horizontal line under the header. If a scheduler control is painted in the WindowsXP or Skin style, the appearance settings used to paint the backgrounds of day headers are ignored.
Appearance Customization Event Handle the SchedulerControl.LayoutViewInfoCustomizing event to access the object which contains the information used to render a visual element.
Custom Draw Event SchedulerControl.CustomDrawResourceHeader

How would you rate this topic?​​​​​​​