I just upgrade to 2016.1.225 (Feb 25, 2016) and I'm having a problem with legacy code that used a client side template to add some more information to the appointment.
This is how the appointment div was rendered before.
<
div
class
=
"rsAptContent"
style
=
""
>
Anthony Lee, Jr.<
span
class
=
"apptDate "
> - 1:30 PM</
span
>
<
div
class
=
"apptDescription"
> - Civil</
div
>
<
a
href
=
"#"
class
=
"rsAptDelete"
style
=
"visibility: hidden;"
>delete</
a
>
</
div
>
This is how it renders now in release 2016.1.225 (Feb 25, 2016)
<
div
class
=
"rsAptContent"
style
=
""
>DAP Clinic Salisbury 10-1 Ann Shaw</
div
>
<
span
class
=
"apptDate "
> - 9:30 AM</
span
><
div
class
=
"apptDescription"
></
div
>
<
a
href
=
"#"
class
=
"rsAptDelete"
style
=
"visibility: hidden;"
title
=
"delete"
><
span
class
=
"rsIcon rsIconDelete"
></
span
></
a
>
<
span
class
=
"rsAptResize rsAptResizeStart"
></
span
>
<
span
class
=
"rsAptResize rsAptResizeEnd"
></
span
>
The rsAptDelete link is not inside of the appointment content div.
I got this code from Telerik to modify the appointment content.
function
OnClientDataBound(scheduler) {
var
$ = jQuery;
// using templates to create the subject & date on the appointment
$(
".rsAptDelete"
).each(
function
() {
var
apt = scheduler.getAppointmentFromDomElement(
this
);
// creating an object containing the data that should be applied on the template
var
descValue = { Description: apt.get_description() };
var
startValue = { Start: apt.get_start().format(
'h:mm tt'
) };
if
(descValue.Description.indexOf(
'Cambridge'
) != -1)
apt.set_cssClass(
'rsCategoryYellow'
);
// instantiate the template, populate it and insert before the delete handler (".rsAptDelete")
$(
"#tmplAppDate"
).tmpl(startValue).insertBefore(
this
);
$(
"#tmplAppDescription"
).tmpl(descValue).insertBefore(
this
);
});
}
Not sure how to get this working now.