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

[Solved] RadScheruler Set Date.

2 Answers 140 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Amit Vaidya
Top achievements
Rank 1
Amit Vaidya asked on 08 Feb 2010, 01:53 PM

Hi,

We are using RadScheduler to display events. When user clicks “Today” link on header, the user navigates to the Today date, which is the server date. We want to change this server date. I have tried by setting SelectedDate property but it’s not working. Is there any way to do this..??
Please help me..

Thanking you.

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 09 Feb 2010, 04:11 PM
Hello Amit,

How about the following code?

protected void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e)
  {
      if (e.Command == SchedulerNavigationCommand.SwitchToSelectedDay)
      {
          e.Cancel = true;
          RadScheduler1.SelectedDate = DateTime.Now.AddDays(2);            
      }
  }

Does it help?


Cheers,
Peter
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Amit Vaidya
Top achievements
Rank 1
answered on 10 Feb 2010, 06:20 AM

Hey thanks for replying...

 

Your reply gave me the clue to go ahead.

 

Thanks once again…

 

Also could you please reply to the post...

http://www.telerik.com/community/forums/aspnet-ajax/scheduler/radscheruler-month-view.aspx
Tags
Scheduler
Asked by
Amit Vaidya
Top achievements
Rank 1
Answers by
Peter
Telerik team
Amit Vaidya
Top achievements
Rank 1
Share this question
or