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

How to set Navigations Buttons In MultipleView Mode

6 Answers 98 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 03 Dec 2010, 05:39 PM
Hi,

Kindly help me with this...

I set the RadCalendar control to...
AllowMultipleView = true
MultiViewColumns = 6
MultiViewRows = 2

Each time I click the Prev/Next button, the view jump to prev/next 12 months. How can I set the buttons to just move 1 month per click. I should maintain the settings above. Thanks.


Kind regards,

Ian

6 Answers, 1 is accepted

Sort by
0
Accepted
Dobry Zranchev
Telerik team
answered on 09 Dec 2010, 04:32 PM
Hi Ian,

Thank you for writing.

The navigation buttons navigate with the number of the months that are represented by the RadCalendar. Currently, there is no way to workaround this functionality. You are the first one who are looking for it. If more people ask for the same, we will consider adding this feature in our To-Do list.

If you have other questions, feel free to contact us.

Greetings,
Dobry Zranchev
the Telerik team
Get started with RadControls for WinForms with numerous videos and detailed documentation.
0
Ian
Top achievements
Rank 1
answered on 09 Dec 2010, 04:50 PM
Hi

Thank you for your reply. I hope you will add this feature. We changed our controls from another 3rd party controls to Telerik controls. The other 3rd party calendar control have this feature. I'm just thinking that some of our clients might request this feature. Again, thank you very much.

Kind regards, 

Ian
0
Dobry Zranchev
Telerik team
answered on 15 Dec 2010, 11:51 AM
Hi Ian,

Thank you for writing back.

This feature request is added to our Public Issues Tracking System. You can vote for it here.

If you have further questions, do not hesitate to contact us.

Best wishes,
Dobry Zranchev
the Telerik team
Get started with RadControls for WinForms with numerous videos and detailed documentation.
0
Adam
Top achievements
Rank 1
answered on 22 Nov 2011, 01:00 PM
I am also looking for the same functionality.

I can see that this has now been implemented for the 2011 Q3 release of the controls. 

However, there is no mention in the documentation on how to achieve this functionality. 

Can a code sample be provided?
0
Ivan Todorov
Telerik team
answered on 24 Nov 2011, 04:51 PM
Hi Adam,

Thank you for asking.

We have resolved this by adding two new events to RadCalendar: Navigating and Navigated. Here is how you can use the Navigating event to customize the navigation steps:
void radCalendar1_Navigating(object sender, Telerik.WinControls.UI.CalendarNavigatingEventArgs e)
{
    if (e.Direction == Telerik.WinControls.UI.CalendarNavigationDirection.Forward && !e.IsFastNavigation)
    {
        e.StartDate = this.radCalendar1.CalendarElement.View.ViewStartDate.AddMonths(3);
    }
    else if (!e.IsFastNavigation)
    {
        e.StartDate = this.radCalendar1.CalendarElement.View.ViewStartDate.AddMonths(-3);
    }
}

We will consider adding this to our documentation.

Should you have any further questions, feel free to ask.

Greetings,
Ivan Todorov
the Telerik team

Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

0
Adam
Top achievements
Rank 1
answered on 24 Nov 2011, 05:30 PM
Thanks for this code sample. Works as intended.
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Ian
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
Ian
Top achievements
Rank 1
Adam
Top achievements
Rank 1
Ivan Todorov
Telerik team
Share this question
or