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

Is there a way to select a date range?

Hello,

I would like to know if we can use the SfCalendar control 
to select date range on Xamarin.Forms, as we can see on apps like Airbnb or Booking.com.

My needs are to:
- click on a date to select the "start" date of the range
- click on a date to select the "end" date of the range
- highlight all the range between the 2 dates

On your help link (https://help.syncfusion.com/xamarin/sfcalendar/select-multiple-dates), you talk about "range selection" but it's not clear for me...

Thank you,

1 Reply

RK Rathana Kumar Sekar Syncfusion Team August 9, 2017 01:00 PM UTC

Hi Pierre-Christophe,

Thanks for contacting Syncfusion Support.

We can achieve your requirement by setting the SfCalendar Selection mode as MultiSelection. We have prepared the sample, which we have implemented the reported requirement by using Selection changed event. Please find the sample from the below link.

Sample: http://www.syncfusion.com/downloads/support/forum/132005/ze/CalendarSample1584947535 

Please let us know if you have any query.

Regards,
Rathanakumar S. 


Loader.
Live Chat Icon For mobile
Up arrow icon