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

[Solved] Programming Today Link

1 Answer 151 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Naganand Bhagavan
Top achievements
Rank 1
Naganand Bhagavan asked on 06 Nov 2007, 06:50 PM
I'd like to direct the user to Go to Day view and show the current day when clicked on "Today". Is there a way to do this?
Also want to show "Today cell" in a different background color both in Month and Week views.

Thanks, Naga.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 09 Nov 2007, 03:37 PM
Hello Naga,

Thank you for your questions.

"To direct the user to Go to Day view and show the current day when clicked on "Today", please, use the following code:
protected void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e)  
    {  
        if (e.Command == SchedulerNavigationCommand.SwitchToSelectedDay)  
            RadScheduler1.SelectedView = SchedulerViewType.DayView;  
    } 

For the cell to appear with different style in MonthView, use the following css rule:

<head runat="server">
<style type="text/css">
 .rsRow td.rsCell.rsTodayCell
  {
     background: green;
   }
</style>
</
head>

For WeekView, the today's day is selected but, unfortunately, there isn't an easy way to hightlight all the hour cells for that particular day.


Cheers,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Naganand Bhagavan
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or