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

Can't change weekend colors

1 Answer 42 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 16 Nov 2015, 09:11 PM

I'm currently changing background colors of days using the following code:

 

Protected Sub calendar_TimeSlotCreated(sender As Object, e As TimeSlotCreatedEventArgs) Handles calendar.TimeSlotCreated
        If ScheduleDates.Contains(e.TimeSlot.Start) Then
            e.TimeSlot.CssClass = "lightSalmon"
        End If
    End Sub

 

Everything works fine except for weekend days. I know for a fact that my ScheduleDates contains weekend dates because I've debugged it. Every day color is being changed but the weekend days remain unaffected. Any ideas?

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 19 Nov 2015, 01:21 PM
Hello Scott,

Thank you for contacting Telerik Support.

I have performed some local tests, regarding the described inability to apply the custom CssClass on the time slots for the weekends, but it seems to work properly at my end.

Could you inspect the element for the weekend timeslots with your developer tool the preferable browser, just to verify if the CssClass is applied to that slot. If it is applied, but the styles are not - you may want to enforce your selectors, using !important for example.

Hope this would help.

Regards,
Nencho
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Scheduler
Asked by
Scott
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or