Clipboard in ASP.NET Core Schedule component

18 Nov 20183 minutes to read

The Clipboard functionality in the Scheduler control enhances scheduling efficiency by enabling users to cut, copy, and paste appointments with ease. This feature is especially beneficial for those managing multiple appointments, as it eliminates the need for repetitive data entry and allows users to quickly adjust their schedules without hassle.
To activate the clipboard feature in the scheduler, simply set the allowClipboard property to true.

Note: The allowKeyboardInteraction property must be true for proper functionality of the clipboard feature.

Cut, copy and paste using keyboard

The Syncfusion Schedule control supports keyboard shortcuts to streamline the process of managing appointments.

These keyboard shortcuts enable users to efficiently manage their schedules:

Operation Shortcut Description
Copy Ctrl+C Duplicate appointments to streamline the scheduling process.
Cut Ctrl+X Move appointments to a new time slot without duplicates.
Paste Ctrl+V Place copied or cut appointments into the desired time slot.

To use these shortcuts, simply click on the appointment and press Ctrl+C to copy or Ctrl+X to cut. To paste the copied or cut appointment, click on the desired time slot and press Ctrl+V

Note: For Mac users, use Cmd instead of Ctrl for copy, cut, and paste operations.

Cut, copy, and paste using context menu

You can programmatically manage appointments by using the public methods cut, copy, and paste. These methods allow you to perform the same actions as the context menu or external buttons.

Utilize these public methods to manage appointments programmatically in Syncfusion Schedule control:

Method Parameters Description
copy None Duplicate the selected appointment for reuse.
cut None Remove the selected appointment from its current slot for moving.
paste targetElement (Scheduler’s work-cell) Insert the copied or cut appointment into the specified time slot.

By using these methods, you can programmatically cut, copy, and paste appointments in the scheduler, providing more control over the appointment management process.

Modifying content before pasting

You can modify the content of an appointment before pasting it by using beforePaste event accessing the appointment details and making necessary changes.

The following example demonstrates how to seamlessly copy and paste content from a grid to a scheduler. To do this, follow these steps:

  1. Select an Item: Click on an item in the grid.
  2. Copy the Details: Press Ctrl + C to copy the selected event details.
  3. Choose a Time Slot: Click on the desired time slot in the scheduler.
  4. Paste the Details: Press Ctrl + V to paste the copied appointment details into the selected time slot.

In this example, the beforePaste event can be utilized to intercept the event details before they are pasted. This allows you to modify the content as needed. Such modifications could include adjusting the time, adding notes, or altering other specifics of the appointment.

Note: Ensure that the field mapping matches with the fields in the scheduler.

You can refer to our ASP.NET Core Scheduler feature tour page for its groundbreaking feature representations. You can also explore our ASP.NET Core Scheduler example to knows how to present and manipulate data.