-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to select only one date in a whole calendar control which has multiple months added in a year. #25
Comments
Hallo, I do not understand how you added 5 months to the Calendar Control. To me it looks more like you added 5 Calendar controls after each other and you want one Date selected in all of these controls, am I correct? When you used 5 Calendar Controls you could use:
And bind all the Calendar controls to the same BindingContext
or in xaml
Then the selected date in all controls will be the same. |
Thankyou for the fast response. To answer your question: I have added 5 different calendar controls one after each other to display more than one month at a time and Is there any other way I can add more than one month and scroll through the months using vertical scroll, same as the built in calendar control for iOS? I hope I am missing something here. If I am using the 5 different calendar controls for displaying 5 different months, then is there any way that, If I select a date in February then the date should be highlighted with some color, then the previously selected month in january to be unselected and color should be as normal date? |
Hi RebeccaXam, Thankyou for the fast response and a great control. If I am using the 5 different calendar controls for displaying 5 different months, then my issue is now resolved using the solution provided by you. So we can close this question. I have one related question with my implementation. If you are okay please answer it here, or else I will create it as a separate question. Is there any other way by using only one calendar control, I can add more than one month and scroll through the months using vertical scroll, same as the built in calendar control for iOS devices? |
I have interest in this too. I tried to attach gestures to the calendar but no success. |
To show multiple months to scroll through use |
Thank you rebacca for the solution. When I am using 5 different calendar controls to display more than once calendar month, I have implemented your suggestion using the calendar view model to select only one date at a time in all the calendar controls. I am facing one new issue in android devices. Sometimes Date Clicked event is hitting twice on selecting a particular date other than the current month. Example: if current date selected in calendar is Jan 15th 2017, on selecting a date Feb 3rd 2017, Date clicked event is triggered twice(Event is triggering 2 times). |
Hi, Eg: Currently it is showing Jan 1 to 31 and Feb 1 to to 11. I want to display only Jan 1 to 31 at a time. |
Current functionality:
Do we have any option, so that if one date is selected in a calendar control(all other selected dates in other months also get deselected)
Requirement: Only one date should be selected in whole calendar control irrespective of date selected in different months.
The text was updated successfully, but these errors were encountered: