# Edit Appointment

This topic describes the work flow for editing an appointment in **RadScheduler** control.

## Using UI

**RadScheduler** uses one and the same dialog to create and edit appointments. This topic describes the end-user's work flow for editing an existing appointment.

![WinUI RadScheduler Edit Appointment](https://www.telerik.com/winui/documentation/assets/b792bb922ea4d6f503b4953870510e91/radscheduler_end_user_capabilities_edit_appointment_01.png)

* In order to edit an appointment just double click it in the **RadScheduler**.

* If the appointment is not a recurrent one, the edit appointment dialog appears immediately.

* After the edit appointment dialog is opened, you can change the Subject, Description, Start and End time of the appointment.

* You can also change or assign category, time marker or importance by using the tool bar controls.

* You can also change the appointment recurrent.

* If you have completed the appointment edit, click the 'Save & Close' button or press the **Enter** key.

* If you want to cancel the appointment creation, click the X button or press the **Esc** key.

## Using code

You can edit an appointment using the code. Here are the steps to accomplish this:

1. Call **BeginEdit()** method of the **RadScheduler** control. It returns whether or not  the appointment or the occurrence can be edited. This method has 3 overloads:

2. If **BeginEdit()** returns **True** - edit the appointment or the occurrence.

3. Call **Commit()** method to commit the changes and to update the **UI**.

#### **Example 1: Editing an Appointment in code**

```C#
if (this.radScheduler.BeginEdit(appointment))
{
	appointment.Subject = "New Subject";
	this.radScheduler.Commit();
}
```

## See Also

* [Create Appointment](https://www.telerik.com/winui/documentation/controls/radscheduler/end-user-capabilities/create-appointment)
* [Delete Appointment](https://www.telerik.com/winui/documentation/controls/radscheduler/end-user-capabilities/delete-appointment)
