Highlighting Today's cell no longer working after setting TimezoneoffSet

2 posts, 0 answers
  1. JD.
    JD. avatar
    37 posts
    Member since:
    Aug 2012

    Posted 28 Sep 2011 Link to this post



    div.RadScheduler_Sitefinity .rsMonthView .rsTodayCell
    background-color: #CCFF00;
    color: #000;
    border: 1px solid #000;

    I have set above in my stylesheet and was working very fine until In the Page_Load event
    I added a line as below.

    RadScheduler1.TimeZoneOffset =

    The TimeZone works fine, but I notice that the stylesheet no longer works and all cell have same background color (White).



  2. Peter
    Peter avatar
    6637 posts

    Posted 03 Oct 2011 Link to this post

    Hi J.,

    You can dynamically set the today's date style like this:
    protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
            if (e.TimeSlot.Start.Date == DateTime.Now.Date)
                e.TimeSlot.CssClass = "TodayStyle";

    <style type="text/css">
            div.RadScheduler_Sitefinity .rsMonthView .TodayStyle
                background-color: #CCFF00;
                color: #000;
                border: 1px solid #000;

    Regards, Peter
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. DevCraft R3 2016 release webinar banner
Back to Top