Background color based on custom field

2 posts, 0 answers
  1. Smiljan
    Smiljan avatar
    8 posts
    Member since:
    Mar 2015

    Posted 01 Apr 2015 Link to this post


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

    TNX and BR,
  2. Dess
    Dess avatar
    1562 posts

    Posted 06 Apr 2015 Link to this post

    Hello Smiljan,

    Thank you for writing.

    Your question has already been answered in the support thread you have opened on the same topic. However, I am posting the reply here as well in order the community to benefit from it.

    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.


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

  3. DevCraft R3 2016 release webinar banner
Back to Top