Log In
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
   [Expand]Product Information
    Getting Started
   [Expand]Visual Elements
   [Expand]Design-Time Features
    [Expand]Data Binding
      How to: Create an Appointment for the Currently Selected Time Interval and Resource
    [Expand]Printing and Reporting
   [Expand]End-User Capabilities
   [Expand]Member Tables
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [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]Document Server
[Expand]Report Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Create an Appointment for the Currently Selected Time Interval and Resource

Before trying to create an appointment in code at runtime, please make sure that the ASPxScheduler Control is bound to data, and all mappings for the appointments and resources are correct. To learn how the data binding task for the ASPxScheduler can be accomplished, refer to the following topics: How to: Bind an ASPxScheduler to MS SQL Server Database (Step-by-Step Guide) and How to: Bind ASPxScheduler Appointment to ObjectDataSource.

This example demonstrates how to create a new appointment for the time interval currently selected in the scheduler. It takes into account the resource which contains the selected time interval, and sets its Id to the appointment. The selected time interval is accessed via the ASPxScheduler.SelectedInterval property, and the selected resource is accessed via the ASPxScheduler.SelectedResource property. An appointment is added to the ASPxSchedulerStorage.Appointments collection of the scheduler's ASPxScheduler.Storage.

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