Hello,
I have RadScheduler connected to sql server table provided by entity data source.
I want to be able to right click on an appointment or any occurrence and get a context menu that contains "Reserve" button.
Clicking "Reserve" will update a field in the related table.
I have customized the Appointment Context Menu as the following:
I handled the event of AppointmentContextMenuItemClicking
The question is: How could I update the appointment occurrence ?? taking into consideration that the occurrence doesn't has a record at the database table so I can update it.
Thanks in advance
I have RadScheduler connected to sql server table provided by entity data source.
I want to be able to right click on an appointment or any occurrence and get a context menu that contains "Reserve" button.
Clicking "Reserve" will update a field in the related table.
I have customized the Appointment Context Menu as the following:
<
AppointmentContextMenus
>
<
telerik:RadSchedulerContextMenu
runat
=
"server"
ID
=
"ContextMenu1"
>
<
Items
>
<
telerik:RadMenuItem
Text
=
"Edit"
Value
=
"CommandEdit"
/>
<
telerik:RadMenuItem
Text
=
"Reserve"
Value
=
"Reserve"
/>
</
Items
>
</
telerik:RadSchedulerContextMenu
>
</
AppointmentContextMenus
>
I handled the event of AppointmentContextMenuItemClicking
The question is: How could I update the appointment occurrence ?? taking into consideration that the occurrence doesn't has a record at the database table so I can update it.
protected void RadScheduler1_AppointmentContextMenuItemClicking(object sender, Telerik.Web.UI.AppointmentContextMenuItemClickingEventArgs e)
{
if (e.MenuItem.Value == "Reserve")
{
// Code will go here
}
}
Thanks in advance