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

How to get week start date and end dates

1 Answer 84 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
shashidhar ch
Top achievements
Rank 1
shashidhar ch asked on 12 Oct 2010, 03:17 PM

Hi,
How to  to get  weekly view start date and end date when switching monthly view  to weekly view with
"radMyScheduler_NavigationCommand" event.

Thanking you
Shashi

1 Answer, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 14 Oct 2010, 07:22 AM
Hi shashidhar ch,

Actually you'll need the NavigationComplete event instead of NavigationCommand as the dates which the NavigationCommand will return will be the dates of the View from which you are switching. So, here's the code in the NavigationComplete event handler:

protected void RadScheduler1_NavigationComplete(object sender, SchedulerNavigationCompleteEventArgs e)
    {
        if (e.Command == SchedulerNavigationCommand.SwitchToWeekView)
        {
            DateTime start = RadScheduler1.VisibleRangeStart;
            DateTime end = RadScheduler1.VisibleRangeEnd;
        }
    }

Hope this helps.

Kind 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
shashidhar ch
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Share this question
or