- Home
- Forum
- Xamarin.Forms
- GetVisibleAppointment returns no results on iOS
GetVisibleAppointment returns no results on iOS
For our mobile app. We want to style and do All Day events different to whats provided by the control. So we have set ShowAllDay to false in the Day view mode.
As a result we hook into the VisibleDatesChanged and when it changes we call GetVisibleAppointments to get the All day appointments.
However i noticed that on iOS the call returns no appointments but with the same code the method returns data on Android.
Is there some race condition impacting this?
SIGN IN To post a reply.
8 Replies
AS
Arun siva
Syncfusion Team
January 25, 2019 02:23 PM UTC
Hi Winston,
Thank you for contacting Syncfusion support.
We have analyzed the reported behavior “VisibleAppointments doesn’t return appointments collection for dayview in iOS” and as we have mentioned in our UG documentation, you can get the visible appointment only after the schedule rendered, hence while swiping the appointments doesn’t available, but you can achieve this by sample level by using the local appointment collection, we have prepared a simple sample for the same.
UG Documentation link: https://help.syncfusion.com/xamarin/sfschedule/data-bindings
Sample: Schedule
We hope that this helps you, kindly revert us if you have any concern.
Regards,
Arun Siva R
SM
Smokeball
January 28, 2019 07:48 PM UTC
Hi Arun,
I looked at the sample and this doesn't fully satisfy it all, why? Because when you have recurring appointments looking at the DataSource simply isn't enough, as there could be occurrences on the visible range, your sample only accounts for standard appointments.
What I don't understand is, why is it inconsistent, on Android, the VisibleDatesChangedEvent fires and calling GetVisibleAppointments at that time does return results, but on iOS it does not.
SP
Subburaj Pandian Veluchamy
Syncfusion Team
January 29, 2019 01:00 PM UTC
Hi Winston,
Thank you for the update.
Currently, we are analyzing the reported behavior “Unable to get the occurrence appointments in the visibledates changed event”. We will validate and let you know the details in one business day (January 30, 2019). We appreciate your patience until then.
Regards,
Subburaj Pandian V
Subburaj Pandian V
AS
Arun siva
Syncfusion Team
January 30, 2019 05:35 PM UTC
Hi Winston,
Thank you for your patience.
We have analyzed your requirement “Unable to get the occurrence appointments in the “VisibleDatesChngedEvent” in schedule iOS”, as per our implementation in iOS the appointments will be rendered to the view after the swipe completed, hence we cannot get the visible appointments by using the VisibleDatesChangedEvent. Instead, you can get the visibleappointments after the view rendered (Ex: By using a button click event).
Kindly revert us if you have any concern.
Regards,
Arun Siva R
SM
Smokeball
January 30, 2019 07:47 PM UTC
Is there anyway to get notify when the view rendering has completed? Calling this via a button won't work for our app as the feature doesn't work that way.
AS
Arun siva
Syncfusion Team
January 31, 2019 12:49 PM UTC
Hi Winston,
Thank you for the update.
Currently, we are analyzing your requirement “Want to get the VisibleAppointments of schedule in VisibleDatesChangedEvent”, and we will update you for this on 1st February 2019. We appreciate your patience until then.
Regards,
Arun Siva R
SM
Smokeball
February 1, 2019 03:39 AM UTC
Ok thank you. It's very important for us to figure this out.
SP
Subburaj Pandian Veluchamy
Syncfusion Team
February 1, 2019 12:51 PM UTC
Hi Winston,
Thank you for your patience.
We have analyzed the reported behavior “Unable to get the visibleappointments in the visibledateschangedevent in iOS” and we have considered to improve this behavior in schedule. We have logged as a feature improvement for the same and it will be implemented in our upcoming 2108 Volume 1 release, which is expected to be available at mid of March 2019. We appreciate your patience until then.
Regards,
Subburaj Pandian V
Subburaj Pandian V
SIGN IN To post a reply.
- 8 Replies
- 3 Participants
-
SM Smokeball
- Jan 24, 2019 04:21 AM UTC
- Feb 1, 2019 12:51 PM UTC