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

XF - Month to day - navigation

2 Answers 25 Views
Calendar & Scheduling
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 16 Sep 2018, 04:31 PM

Hello,

Working with xf calendar and have a calendar loaded with appointments defaulting to monthview.

When day is selected, it have it move to dayview using the "SelectionChange" event:

calendar.TrySetViewMode(CalendarViewMode.Day, true);

 

Question is, how do I allow users to navigate BACK to monthview? 

2 Answers, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 17 Sep 2018, 02:43 PM
Hi Jason,

In order to navigate back from day view to month view you can add a button above the RadCalendar control and use the following code inside the button click event:
private void Button_Clicked(object sender, EventArgs e)
{
 calendar.TrySetViewMode(CalendarViewMode.Month);
}

I have created a sample example with another approach to achieve the scenario similar to the attached image. Please take a look at the project how the back button is implemented in order to navigate to month view.

Let me know if you have any other questions.

Regards,
Didi
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Jason
Top achievements
Rank 1
answered on 18 Sep 2018, 12:23 AM
Thanks Didi.  I got it work with your sample project code.
Tags
Calendar & Scheduling
Asked by
Jason
Top achievements
Rank 1
Answers by
Didi
Telerik team
Jason
Top achievements
Rank 1
Share this question
or