Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [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
  [Collapse]Scheduler
   [Expand]Product Information
    Getting Started
   [Expand]Fundamentals
   [Expand]Concepts
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Collapse]Examples
    [Expand]Data Binding
    [Collapse]Selection
      How to: Create an Appointment for the Currently Selected Time Interval and Resource
    [Expand]Customization
    [Expand]Printing and Reporting
    [Expand]Miscellaneous
   [Expand]End-User Capabilities
   [Expand]Member Tables
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gauges
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
 [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]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[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 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.

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