Calendar weekend days - how to change days to Friday and Saturday

2 posts, 0 answers
  1. Ronit
    Ronit avatar
    1 posts
    Member since:
    Mar 2015

    Posted 03 Dec 2015 Link to this post

    How can I changed the weekend days of the calendar?

    The default weekend days are - Saturday and Sunday. I need to change them to be - Saturday and Friday.

    I tried to define culture info:

            Dim culture As New CultureInfo("he-IL")    
            culture.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Sunday
            culture.DateTimeFormat.CalendarWeekRule = CalendarWeekRule.FirstFullWeek
            Calendar.CultureInfo = culture


    I tried to change the weekend days on day render event:

        If e.Day.Date.DayOfWeek.Equals(DayOfWeek.Saturday) Or e.Day.Equals(DayOfWeek.Friday) Then
                e.Cell.CssClass = "rcWeekend rcDisabled"
                e.Cell.CssClass = ""
            End If


    But the class is being override and changed to Saturday and Sunday is "rcWeekend "


  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 08 Dec 2015 Link to this post

    Hello Ronit,

    The required functionality is not available with the RdaCalendar control and you can currently set "FirstDayOfWeek" as workaround and add the Friday in a special day collection with weekend days styles applied.

    I hope this helps.

    Maria Ilieva
    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
  3. DevCraft R3 2016 release webinar banner
Back to Top