|
Article relates to
|
RadScheduler
|
|
Created by
|
Veronica, Telerik
|
|
Last modified
|
May 7, 2010
|
|
Last modified by
|
Veronica, Telerik
|
HOW TO
Highlight all visible appointments of the same resource when clicking on an appointment.
DESCRIPTION
Appointments of various resources are displayed. Clicking on an appointment will highlight with custom color all appointments with the same resource. For this solution:
- Assign a 'Color' attribute for the Resources in RadScheduler's DataBound event handler.
- On OnClientAppointmentClick, access appointment's resources client-side and loop through all visible appointments of RadScheduler client-side.
- Set the appointment backColor property client-side based on the resource attribute.
- Finally, clear the backColor on timeslotclick or appointment click.
SOLUTION
Javascript:
code-behind:
Here you can store your choice of color in the resource attributes collection:
C#
VB
Please
Sign In
to rate this article.