+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How to color code the appointments in RadScheduler by category

How to color code the appointments in RadScheduler by category

2 posts, 0 answered
  1. Prateek
    Prateek avatar
    12 posts
    Registered:
    11 Sep 2012
    16 Apr 2013
    Link to this post
    I am using a RadScheduler to display the events in my Sitefinity website. The events have categories which too are in SItefinity. 
    How do i color code the events by category while binding the data?
  2. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    19 Apr 2013
    Link to this post
    Hello Prateek,

     Please check the RadScheduler demo, where this functionality is achieve with ResourceStyles:

    <ResourceStyles>
                                <%--AppointmentStyleMode must be explicitly set to Default (see above) otherwise setting BackColor/BorderColor
                                     will switch the appointments to Simple rendering (no rounded corners and gradients)--%>
                                <telerik:ResourceStyleMapping Type="Calendar" Text="Personal"
                                     BorderColor="#abd962" />
                                <telerik:ResourceStyleMapping Type="Calendar" Text="Work"
                                     BorderColor="#25a0da" />
                           </ResourceStyles>
    Here's the demo page:
    http://demos.telerik.com/aspnet-ajax/scheduler/examples/overview/defaultcs.aspx#qsf-demo-source
    Here's some more information about ResourceStyles:

    http://blogs.telerik.com/aspnetmvcteam/posts/09-04-08/easy-appointment-styling-with-radscheduler-for-asp-net-ajax.aspx

    Kind regards,
    Jen Peleva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered