I am trying to remove an appointment from the radscheduler on client side. I have a standard asp button that will fire a javascript function but I'm not sure on the syntax for removing an appointment from the radscheduler. Could I get some guidance. Thanks.
function DeleteAnAppointment()
{
$("#" + "<%= RadScheduler1.ClientID %>").deleteAppointment(2);
}
<
asp:LinkButton
runat
=
"server"
ID
=
"btnCancelAppointment"
CssClass
=
"btn btn-default"
OnClientClick
=
"DeleteAnAppointment();"
>
CANCEL
</
asp:LinkButton
>
<
telerik:RadScheduler
ID
=
"RadScheduler1"
runat
=
"server"
StartInsertingInAdvancedForm
=
"true"
EnableDescriptionField
=
"true"
OverflowBehavior
=
"Auto"
OnClientAppointmentClick
=
"appointmentClick"
OnClientAppointmentMoving
=
"appointmentMoving"
OnClientFormCreated
=
"formCreated"
OnAppointmentClick
=
"RadScheduler1_AppointmentClick"
OnAppointmentInsert
=
"RadScheduler1_AppointmentInsert"
Height
=
"700px"
Width
=
"100%"
Skin
=
"Bootstrap"
Culture
=
"en-GB"
AdvancedForm-Modal
=
"True"
MinutesPerRow
=
"15"
HoursPanelTimeFormat
=
"hh:mm tt"
NumberOfHoveredRows
=
"1"
SelectedView
=
"WeekView"
OnTimeSlotCreated
=
"RadScheduler1_TimeSlotCreated"
AllowEdit
=
"false"
AllowInsert
=
"true"
AllowDelete
=
"false"
AgendaView-UserSelectable
=
"True"
TimelineView-UserSelectable
=
"False"
Localization-AdvancedDescription
=
"Notes"
ShowFooter
=
"False"
ShowAllDayRow
=
"False"
DayView-UserSelectable
=
"False"
OnAppointmentCreated
=
"RadScheduler1_AppointmentCreated"
OnDataBound
=
"RadScheduler1_DataBound"
>
<
MonthView
ReadOnly
=
"True"
VisibleAppointmentsPerDay
=
"4"
/>
<
AdvancedForm
Modal
=
"True"
EnableCustomAttributeEditing
=
"true"
/>
<
TimelineView
UserSelectable
=
"False"
/>
<
AgendaView
UserSelectable
=
"True"
/>
<
AppointmentTemplate
>
<
div
style
=
"font-weight:bold;"
><%# Eval("ApptClientID") %></
div
>
<
div
><%# Eval("Title") %> <%# Eval("Surname") %></
div
>
</
AppointmentTemplate
>
</
telerik:RadScheduler
>