Today's cell styling problem

5 posts, 0 answers
  1. Roatin Marth
    Roatin Marth avatar
    65 posts
    Member since:
    Nov 2007

    Posted 22 Aug 2011 Link to this post

    Hey folks,

    Why is it in my scheduler project that there's always a cell on the month view calendar that is styled as today's date, even if I am not on the correct month?

    For example, I am viewing July 2011 and July 18th is styled as today's date.

    For some reason the TodayCell class is getting assigned to some cells incorrectly.

    I am using the 2011.1.413.40 DLL.

    regards,
  2. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 25 Aug 2011 Link to this post

    Hi Roatin,

    You can consult with this help topic. I tested it with the 2011.1.413.40 DLL and didn't meet any unusual behavior:

    .rsMonthView .rsTodayCell
            {
                background-color: #CCFF00;
                color: #000;
                border: 1px solid #000;
            }

    Greetings,
    Plamen Zdravkov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Roatin Marth
    Roatin Marth avatar
    65 posts
    Member since:
    Nov 2007

    Posted 25 Aug 2011 Link to this post

    try it with the scheduler set to use web service binding and i think you will see the bug i speak of

    this seems to be a bug with web service binding

    todays date highlights as expected when i remove the  <WebServiceSettings Path="MyWebService.asmx" ResourcePopulationMode="ServerSide"/> element from the scheduler tag.


    Here's a workaround that seems to work
    function OnClientNavigationComplete(sender, args) {              
                  var $ = $telerik.$;            
                  var todayDate = new Date();
                  if (sender.get_selectedDate().format("yyyy-MM") != todayDate.format("yyyy-MM")) {
                      $(".rsTodayCell").attr("class""notToday");
                  }
                  else
                  {
                      $(".notToday").attr("class""rsTodayCell");
                  }
              }

  5. Vnuce
    Vnuce avatar
    2 posts
    Member since:
    Nov 2011

    Posted 13 Mar 2012 Link to this post

    Hi Plamen, Roatin,

    I'm having the same issue. I'm using RadScheduler with web service binding and the today highlight doesn't go away when navigating to another month. 

    Roatin, I tried your approach, but the NavigationComplete client event doesn't seem to be fired at all.
    Any way how I can solve this? 


    Thanks
  6. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 15 Mar 2012 Link to this post

    Hello Vnuce,

     
    There is a known bug in the 2011.3.1115 version of RadControls where the OnClientNavigationComplete 
     event is not fired. In the next versions this issue is fixed so when you update the issue must be solved. 

    If your case is somehow different please clarify the product version that should be used in order to reproduce this behavior.

    Hope this will be helpful.

    Kind regards,
    Plamen Zdravkov
    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017