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

How to programtically set SelectedDate in DayView mode?

1 Answer 66 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 15 Oct 2010, 07:16 PM
I have 2 RadScheduler controls on a page, and what I need to do is keep their dates in sync, ie When it changes on one the date should be updated on the other to match.

Right now I am attempting to use the OnNavigationComplete method like so:

 protected void RadScheduler1_OnNavigationComplete(object sender, SchedulerNavigationCompleteEventArgs e)
 {
        RadScheduler3.SelectedDate = RadScheduler1.SelectedDate;       
        RadScheduler3.Rebind();
 }


When I change RS1's date I see this event get fired, but RS3's date does not get changed. Any suggestions?

1 Answer, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 18 Oct 2010, 03:22 PM
Hello Ron,

Instead of OnNavigationComplete, I suggest you to use OnNavigationCommand event and set the SelectedDate of the second scheduler from e.SelectedDate of the first one:

protected void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e)
   {
       RadScheduler2.SelectedDate = e.SelectedDate;
   }

Hope this helps.

Regards,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler
Asked by
Ron
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Share this question
or