All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Posted 27 Mar 2018 Link to this post
Requirements
Telerik Product and Version
Supported Browsers and Platforms
Components/Widgets used (JS frameworks, etc.)
<telerik:RadCodeBlock runat=
"server"
>
<script>
var
$ = $ || $telerik.$;
function
f() {
scheduler = $find(
"<%= RadScheduler1.ClientID %>"
);
$(
".rsApt"
, scheduler.get_element()).on({
mouseover:
(ev) {
hoveredAppointment = scheduler.getAppointmentFromDomElement(ev.currentTarget);
hoveredAppointmentAttribute = hoveredAppointment.get_attributes().getAttribute(
'custom-attribute'
allAppointments = scheduler.get_appointments()
for
(
i = 0; i < allAppointments.get_count() ; i++) {
appointment = allAppointments.getAppointment(i);
appointmentElement = appointment.get_element();
if
(appointment.get_attributes().getAttribute(
"custom-attribute"
) == hoveredAppointmentAttribute) {
appointmentElement.classList.add(
"rsAptHovered"
}
},
mouseout:
".rsAptHovered"
).removeClass(
)
})
Sys.Application.add_load(f);
</script>
</telerik:RadCodeBlock>
private
int
count = 0;
protected
void
RadScheduler1_AppointmentDataBound(
object
sender, SchedulerEventArgs e)
{
e.Appointment.Attributes.Add(
,
"attr"
+ count % 3);
count++;
This Code Library is part of the product documentation and subject to the respective product license agreement.