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

MultiTimeSlot Selection Bug

1 Answer 72 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Sean Overman
Top achievements
Rank 1
Sean Overman asked on 01 Feb 2011, 07:07 PM
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?

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 07 Feb 2011, 09:55 AM
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.
Tags
Scheduler
Asked by
Sean Overman
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or