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. Image for the cookie policy date

Reset Calendar Dates

Hello,

We are trying to use SelectedDatea.Clear function to clear the dates but it is not working. Could you please let us know how to clear the selected dates. Our scenario is the user selected a range of date and when he clicks another date we want to clear the previous selection and highlight the new date. 

Thanks
Suresh

1 Reply

RK Rathana Kumar Sekar Syncfusion Team April 28, 2017 10:38 AM UTC

Hi Suresh,

Thanks for contacting Syncfusion Support.

We can achieve your requirement by using SelectionChanged event of SfCalendar and we have prepared the sample which we have try to implement your requirement. Please find the sample from the below link.

Sample: http://www.syncfusion.com/downloads/support/forum/130197/ze/calendarselectionclear635138331

Note: In the sample, as per your requirement we deselect the previously selected two dates when user select the third date using selectionchanged event of SfCalendar.

If the provided sample doesn't meet your requirement could you please provide more information like modified sample which replicates the reported issue.

It will help us to provide appropriate solution on this.

Regards,
Rathanakumar S.


Loader.
Live Chat Icon For mobile
Up arrow icon