Can't change weekend colors

2 posts, 0 answers
  1. Scott
    Scott avatar
    7 posts
    Member since:
    Oct 2015

    Posted 16 Nov 2015 Link to this post

    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?

  2. Nencho
    Nencho avatar
    1665 posts

    Posted 19 Nov 2015 Link to this post

    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.

    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
Back to Top