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.

After changing VisibleMaxDate the SelectedDate is no longer highlighted

Thread ID:

Created:

Updated:

Platform:

Replies:

123387 Mar 13,2016 07:44 PM May 4,2016 12:14 AM UWP 16
loading
Tags: SfCalendar
James Newton King
Asked On March 13, 2016 07:44 PM

After changing VisibleMaxDate the SelectedDate is no longer highlighted.

<input:SfCalendar
    Width="300" Height="300"
    Margin="10"
    FontSize="15"
    Style="{StaticResource CalendarStyle}"
    BorderBrush="Black" BorderThickness="1"
    SelectionMode="Single"
    ShowNavigationButton="True"
    DisplayDate="{Binding DisplayDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
    SelectedDate="{Binding SelectedDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
    VisibleMaxDate="{Binding MaxFilterDate}"
    VisibleMinDate="{Binding MinFilterDate}">
    <interactivity:Interaction.Behaviors>
        <behaviors:CalendarMonthChangedBehaviour MonthChanged="{Binding ChangeMonthCommand}" />
    </interactivity:Interaction.Behaviors>
</input:SfCalendar>

I don't know if it matters but the calendar is inside a closed flyout when VisibleMaxDate changes.

Venkateshwaran Ramdoss [Syncfusion]
Replied On March 14, 2016 08:02 AM

Hi James,

Thank you for contacting Syncfusion Support.

We have analyzed the reported issue by creating a simple sample. But we were unable to reproduce the issue at our end. In this sample we have used SfCalendar and 'Change SelectedDate' button to set the SelectedDate value at run time and 'Change VisibleMaxDate' button to set the VisibleMaxDate value, the SelectedDate has been highlighted now also. Can you please check whether you are able to reproduce the reported issue with this sample?

Please download the sample from the below link

Sample: SfCalendarsample

Could you please provide more details about your query by modifying the sample and replication steps to reproduce the issue? It will help us to proceed further.

Regards,
Venkateshwaran V.R.

James Newton King
Replied On March 14, 2016 07:59 PM

Example attached

Increasing the VisibleMaxDate clears the selected cell from the calendar.

Also I have noticed that if the SelectedDate equals the VisibleMaxDate (launch the example and click change selectedDate and then open the flyout) then nothing is displayed:



Attachment: SfCalendarsample_4b7ce1a.zip

Venkateshwaran Ramdoss [Syncfusion]
Replied On March 15, 2016 07:18 AM

Hi James,

We have confirmed the reported issue "After changing VisibleMaxDate the SelectedDate is no longer highlighted" as a defect. We will include this fix in our Vol 1, 2016 Service pack 1 release which will be available in April, 2016.

Regards,
Venkateshwaran V.R.

Rajkumar Ganesamoorthy [Syncfusion]
Replied On March 29, 2016 08:04 AM

Hi James,

Please ignore the previous update.

We have modified your last updated sample to meet your requirement. In this sample we have reset the SelectedDate property of SfCalendar in its loaded event. Because the reported issue occurs while changing the SelectedDate property of SfCalendar when it is in Unloaded state(Popup or flyout is in closed state).
Please find the modified sample from the below location.

Sample:ModifiedSolution

Please let us know if the above sample meets your requirement or not.

Regards,
Rajkumar G

James Newton King
Replied On March 29, 2016 06:27 PM

I don't urgently need it fixed. You're still fixing it in the next UWP controls release? I will wait until then.

Rajkumar Ganesamoorthy [Syncfusion]
Replied On March 30, 2016 07:15 AM

Hi James,

When we try to fix the reported issue in our source, we found that the issue is with the sample and we can fix this in sample level. Also this issue is not related with our source. Can you please check our last updated sample and update us whether it meets your requirement?

Regards,
Rajkumar G

James Newton King
Replied On March 31, 2016 10:50 PM

I just recreated the issue in your sample.


Also why are you giving me a sample where you are changing it how it works? In the app I am reusing the SfCalendar from multiple places which is why it is in a DataTemplate. And I am using it in a flyout which is why the example I gave you is in a flyout.

James Newton King
Replied On March 31, 2016 10:56 PM

If there is something wrong with my sample then fix it and leave the functionality unchanged or explain why it fundamentally doesn't work. Right now it is useless to me because you've changed it.

What exactly was wrong with my sample? As far as I can tell the values set via databinding should flow through and it should just work. The changes you've made look like a hack fix.

James Newton King
Replied On March 31, 2016 11:04 PM

"Because the reported issue occurs while changing the SelectedDate property of SfCalendar when it is in Unloaded state(Popup or flyout is in closed state)."

Isn't fixing that behavior the bug. Why doesn't SfCalendar handle the SelectedDate being changed while it isn't visible?

James Newton King
Replied On March 31, 2016 11:36 PM

I just reverse engineered your solution and it doesn't even work when the SelectedDate changes past the current month.


So to sum up: SelectedDate still becomes unselected when VisibleMaxDate changes, and calendar rendering still breaks when SelectedDate is changed is changed while it is closed.

These bugs in your controls are starting to waste a significant amount of my time.

Mariappan S [Syncfusion]
Replied On April 1, 2016 11:10 AM

Hi James,

Sorry for the inconvenience.

We try to convey the behavior of Popup, which doesn’t get refresh when its child is not in view. Due to this reason we have provided workaround sample to meet your requirement. On further analyzing on your update and the behavior of Popup, we have planned to refresh our SfCalendar, even it is not in view and make necessary changes in our source level, We will include this fix in our Vol 1, 2016 Service pack 1 release which will be available in end of April, 2016.

Please let us know if you need further assistance.

Regards,
Mariappan S.

James Newton King
Replied On April 17, 2016 09:32 PM

Hi

Do you have a date for when the fix will be available?

Venkateshwaran Ramdoss [Syncfusion]
Replied On April 18, 2016 04:34 AM

Hi James,

The fix will be included in our Vol 1,2016 Service pack 1 release which will be available by the end of April 2016

Regards,
Venkateshwaran V.R.

James Newton King
Replied On May 2, 2016 09:19 PM

Where can I download it?

Venkateshwaran Ramdoss [Syncfusion]
Replied On May 3, 2016 06:29 AM

Hi James,

We are in the final phase of our release works and it will be available by this week.

Regards,
Venkateshwaran V.R.

Venkateshwaran Ramdoss [Syncfusion]
Replied On May 4, 2016 12:14 AM

Hi James,

We are glad to announce that our Essential Studio Volume 1 Service Pack 1, 2016 (Version 14.1.0.46) is rolled out and is available for download under the following link.

http://syncfusion.com/forums/123963/essential-studio-2016-volume-1-service-pack-release-v14-1-0-46-available-for-download

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

Regards,
Venkateshwaran V.R.

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.

;