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

Today's cell styling problem

4 Answers 51 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Roatin Marth
Top achievements
Rank 1
Roatin Marth asked on 22 Aug 2011, 09:36 PM
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,

4 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 25 Aug 2011, 12:50 PM
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 >>

0
Roatin Marth
Top achievements
Rank 1
answered on 25 Aug 2011, 02:30 PM
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");
              }
          }

0
Vnuce
Top achievements
Rank 1
answered on 13 Mar 2012, 11:28 AM
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
0
Plamen
Telerik team
answered on 15 Mar 2012, 04:11 PM
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.
Tags
Scheduler
Asked by
Roatin Marth
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Roatin Marth
Top achievements
Rank 1
Vnuce
Top achievements
Rank 1
Share this question
or