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

Navigate to Next/Previous Period

3 Answers 150 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 04 Dec 2008, 04:33 PM
Hello,

When you navigate to the previous/next period in the scheduler's NavigateCommand event handler, is there a way to determine what date is being navigated to?  e.SelectedDay is 1/1/0001 which is incorrect...  For navigating to the selected date, this works, but whne changing next/previous period, e.SelectedDay is incorrect and I don't know which day it's moving to.

Is there a way to tell?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 04 Dec 2008, 05:27 PM
Hi Brian,

NavigationCommand happens too early. You need NavigationComplete in which handler you can use SelectedDate of RadScheduler:


 protected void RadScheduler1_NavigationComplete(object sender, Telerik.Web.UI.SchedulerNavigationCompleteEventArgs e)  
    {  
        Response.Write(RadScheduler1.SelectedDate);  
    } 


Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Brian Mains
Top achievements
Rank 1
answered on 04 Dec 2008, 09:35 PM
Hey,

Yes, but there isn't a way to determine, in that event either, what the previous date was?  SelectedDate stores the new date, but not the old.  I ended up storing the previous date in the ASPX page's class in ViewState, but I was wondering if there is a property built-in...

Thanks.
0
Peter
Telerik team
answered on 05 Dec 2008, 09:27 AM

Hmm, there isn't such a built-in property, but it sounds like a good idea. Thanks for the suggestion.


Kind regards,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Peter
Telerik team
Brian Mains
Top achievements
Rank 1
Share this question
or