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.

Navigation Button causes SelectionChanged event

Thread ID:

Created:

Updated:

Platform:

Replies:

120640 Sep 29,2015 03:42 PM Oct 1,2015 11:35 PM UWP 5
loading
Tags: SfCalendar
Claudio
Asked On September 29, 2015 03:42 PM

Hi,
in UWP, if I click/tap on NavigationButton of my SfCalendar, I Obtain a SelectionChanged event.


<input:SfCalendar Grid.Row="3" ShowNavigationButton="True"

Margin="10" VerticalAlignment="Top" HorizontalAlignment="Left"

x:Name="calendar"

SelectionChanged="calendar_SelectionChanged">

</input:SfCalendar>



Why?


Mariappan S [Syncfusion]
Replied On September 30, 2015 04:33 AM

Hi Claudio,

Thank you for contacting Syncfusion Support.

In our SfCalendar control, when we navigate to next month view, first date of the current month will get selected. Due to this, the SelectionChanged event is called. This is expected behavior of SfCalendar control. Could please provide more information about your requirement it would be helpful for us to provide you better solution.

Please let us know if you need further assistance.

Regards,
Mariappan S. 

Claudio
Replied On September 30, 2015 05:43 AM

Hi Mariappan,

In the SfCalendar Universal version (Win 8.1) its behavior is different; the event is NOT called when I click on the Navigation Buttons. (I'm using the same code!)

However, I would like to understand how to intercept ONLY the event click/tap on every single date.

Mariappan S [Syncfusion]
Replied On October 1, 2015 09:24 AM

Hi Claudio,
 
We have checked the SfCalendar behavior in both UWP and WinRT platform. In this the calendar SelectionChanged  event gets triggered while changing the the month view. We have prepared a workaround sample in this sample we have maintained the boolean variable named IsnavigationButtonpressed to check the event is triggered by changing month view or change the selected date.

Please download the sample from the below link.

Sample link: SfCalendar_UWP


Please let us know if you need further assistance.

Regards,
Mariappan S.

Claudio
Replied On October 1, 2015 11:14 AM

Hi Mariappan,

The example work well, thanks!

Sugapriya Mariappan [Syncfusion]
Replied On October 1, 2015 11:35 PM

Hi Claudio,

Thank you for your update

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.

;