We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

way to disable date change when user changes the month

Thread ID:

Created:

Updated:

Platform:

Replies:

119507 Jul 1,2015 04:36 PM Jul 10,2015 08:20 AM WPF 4
loading
Tags: CalendarEdit
Henry Harris
Asked On July 1, 2015 04:36 PM

Is there a way to disable changing the selected date when we change the month shown on the calendar?  
We are tying an event to when the selected date changed that we only want fired when the user actually clicks on a date but not when they are switching months.

Henry Harris
Replied On July 1, 2015 04:41 PM

Is there a way to disable changing the selected date when we change the month shown on the calendar?  
We are tying an event to when the selected date changed that we only want fired when the user actually clicks on a date but not when they are switching months.

The issue is that the users are focused on the calendar and hit the scroll wheel which changes the selected date without the user knowing it since they didn't click on the calendar again.  So we need a way to either disable the date from changing when the month of the calendar changes or disable the scroll wheel causing the months to change.

Sugapriya Mariappan [Syncfusion]
Replied On July 2, 2015 12:42 PM

Hi Henry,
Query #1: Is there a way to disable changing the selected date when we change the month shown on the calendar?  
In our implementation, when Month is changed, then Date will also change, So It is not possible to disable the option for changing the selected date when we change the month
Query #2: Disable the scroll wheel causing the months to change
We have prepared a sample which tries to meet your requirement. In the sample we have disabled the NavigationButton by using FindName method
Kindly download the sample from the below link:
Sample link:CalendarWPFSample

Please let us know if you need any other assistance

Regards,
M.Sugapriya


Henry Harris
Replied On July 9, 2015 01:37 PM

We still need to be able to change the months so this won't work.  We just want it so that the scroll wheel will not change the months.

Sugapriya Mariappan [Syncfusion]
Replied On July 10, 2015 08:20 AM

Hi Henry,

Sorry for the inconvenience caused

“Query #1: scroll wheel will not change the months.”

We have prepared a sample which tries to meet your requirement. In this sample, we have handled PreviewMouseWheel event to stop scroll wheel causing months to change

Please download the sample from the below link
Sample link:CalendarWPFSample

If your requirement is different from this sample, please provide more information about your requirement

Please let us know if you need any other assistance
Regards,
M.Sugapriya

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;