MultiTimeSlot Selection Bug

2 posts, 0 answers
  1. Sean Overman
    Sean Overman avatar
    31 posts
    Member since:
    Sep 2012

    Posted 01 Feb 2011 Link to this post

    There is a problem when using the new feature included in Q32010 for highlighting multiple timeslots then using the context menu to create a new appointment if you set the background color of the timeslots dynamically in the TimeSlotCreated event.

    ex:
    void Schedule_TimeSlotCreated(object sender, Telerik.Web.UI.TimeSlotCreatedEventArgs e) {
      e.TimeSlot.Control.BackColor = Color.FromArgb(230, 230, 230);
    }

    what ends up getting rendered is this:
    <td style="background-color: rgb(230, 230, 230);" class="rsSelectedSlot"> </td>

    The problem is that because the styles for the background color are applied directly to the element, the class styles are not being overridden.

    Is there another way I can set the background color for a timeslot that would fix this problem?  Also, is there a way to change the color of the SelectedSlot through a property and not directly overriding the style on the page or using a skin?
  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 07 Feb 2011 Link to this post

    Hello Sean,

    You can solve this by marking the slots with a cssClass and then then declare the background-color for these elements using the class as selector. This way it will not override our styles on hover and selection and will get the color you want it to.


    Regards,
    Nikolay Tsenkov
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top