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

Set current month/week/day

2 Answers 65 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Vikas
Top achievements
Rank 1
Vikas asked on 22 Oct 2014, 03:44 PM
Is it possible to set the schedule view to current month/week/day, The requirement is to have a button and when user clicks that month

- if the active view is month and lets say currently user is viewing Dec, on click of the button the view should automatically change to current month Oct
- same for week and day

Thanks
Vikas
  

2 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 23 Oct 2014, 10:15 AM
Hi Vikas,

In order to achieve that functionality you could handle the Click event of the Button and in it to set the CurrentDate property of the ScheduleView to the desired date:

void RadButton_Click(object sender, RoutedEventArgs e)
{
    this.radScheduleView1.CurrentDate = DateTime.Now;
}

I hope this will help you.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Vikas
Top achievements
Rank 1
answered on 23 Oct 2014, 06:43 PM
Thanks that works.

Vikas
Tags
ScheduleView
Asked by
Vikas
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Vikas
Top achievements
Rank 1
Share this question
or