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
   [Collapse]Fundamentals
    [Expand]Scheduler Elements
    [Expand]Scheduler Structure
    [Expand]Appointments
     Resources for Appointments
    [Expand]Views
    [Expand]Data Binding
    [Collapse]Mappings
      Appointment Mappings
      Resource Mappings
      Dependency Mappings
      How to: Set Mappings
      Required Fields
      Custom Fields
      Mapping Converters
    [Expand]Supported Formats
    [Expand]Services
    [Expand]Time Zones
     Printing
    [Expand]Scheduler Reporting
   [Expand]Visual Elements
   [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

How to: Set Mappings

Expanded How to Set Mappings at Design Time

At design time, you can run a Mappings Wizard to establish mappings for appointments and resources. Wizards can generate mappings automatically using the algorithm based on the field name and type. However, you are advised to check autogenerated mappings to ensure that they are correct, because incorrect mappings may result in obscure errors that are difficult to trace.

The Mappings Wizard for appointments is shown in the following image:

Expanded How to Set Mappings in Code

Provide field mappings in code using the AppointmentStorageBase.Mappings and ResourceStorage.Mappings properties. Specify the AppointmentDependencyStorage.Mappings if you plan to use the Gantt View.

You can define any number of custom fields for your specific purpose, and map them to the custom properties via the AppointmentStorage.CustomFieldMappings, ResourceStorage.CustomFieldMappings and AppointmentDependencyStorage.CustomFieldMappings properties.

The following code snippet maps the data source containing the "AllDay", "EventDescription", "EndDate", "Label", "Location", "RecurrenceInformation", "Reminder", "StartDate", "Status", "Subject", "AppointmentType", "ResourceIDs" and "CustomField1" fields to the corresponding properties and custom fields of the appointment.

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