[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Expand]Reporting
  [Expand]Charting
  [Expand]Pivot Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Collapse]Scheduler
   [Expand]Overview - SchedulerControl
    Main Features - Scheduler
   [Collapse]Getting Started - Scheduler
     Lesson 1 - Use Scheduler to Display Appointments in Read-Only Mode
     Lesson 2 - Implement the Insert/Update/Delete Appointment Functionality
     Lesson 3 - Use Scheduler in Complex Views
     Use a Project Template to Create a Fully Functional Application
     How to: Customize the Appointment Dialog using View Model API (simple customization)
     How to: Customize the Appointment Dialog using View Model API (working with custom fields)
   [Expand]Concepts - Scheduler
   [Expand]Visual Elements - Scheduler
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors Extensions
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Extensions
  [Expand]SpellChecker
  [Expand]Query Builder
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Lesson 3 - Use Scheduler in Complex Views

The Lesson 1 - Use Scheduler to Display Appointments in Read-Only Mode document uses a technique that specifies scheduler settings within the view. If your application does not allow users to interact with appointments, this approach works well. However, if the scenario assumes that appointments will be modified, pass the Scheduler settings to the corresponding overloads of the SchedulerExtension.GetAppointmentsToInsert<T>, the SchedulerExtension.GetAppointmentsToUpdate<T> and the SchedulerExtension.GetAppointmentsToRemove<T> methods. Otherwise, appointment display and operations may perform incorrectly.

This approach requires that the SchedulerSettings object is instantiated on the server and passed to the controller and view, so a special helper class (SchedulerSettingsHelper) is implemented to provide the required settings for views and controllers within the application.

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E3997.

A controller method that updates appointments is shown in the code snippet below.

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E3997.

The view is also changed to obtain settings from the helper object.

Is this topic helpful?​​​​​​​