This is a migrated thread and some comments may be shown as answers.

Background color based on custom field

2 Answers 67 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Smiljan
Top achievements
Rank 1
Smiljan asked on 01 Apr 2015, 12:42 PM
Hi!

Is there a possibility to set background color based on the custom field in Appointments table (let's say in "AppointmentFormatting" event)?

TNX and BR,
Smiljan

2 Answers, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 01 Apr 2015, 12:49 PM
Hello Smiljan,

Thank you for writing.

Please refer to our Formatting appointments help article which demonstrates how to style the AppointmentElements. In the event handler you have access to the Appointment via the SchedulerAppointmentEventArgs. You should cast the SchedulerAppointmentEventArgs.Appointment to your custom class, extract the custom field and apply the desired style to the SchedulerAppointmentEventArgs.AppointmentElement.

I hope this information helps. Should you have further questions, I would be glad to help.
 
Regards,
Dess
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Smiljan
Top achievements
Rank 1
answered on 03 Apr 2015, 06:26 AM
Great!

Did the trick :)

Thank you and BR,
Smiljan
Tags
Scheduler and Reminder
Asked by
Smiljan
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Smiljan
Top achievements
Rank 1
Share this question
or