Hi Romulo,
Thanks for your interest in Syncfusion Products.
Based on the provided information, your requirement of tapping an appointment can be achieved by “ScheduleCellTapped” event in SfSchedule Xamarin. This event is used to listen while tap on the Schedule cell or Appointment, and it is applicable for all Schedule views. Please find the code snippets for the same.
Code Snippets:
[C#] schedule.ScheduleCellTapped += schedule_ScheduleCellTapped;
void schedule_ScheduleCellTapped(object sender, ScheduleTappedEventArgs args) { //DateTime of the selected cell in Schedule var dateTime= args.datetime;
//Schedule instance var schedule = args.Schedule;
//Selected appointment informations var selectedAppointment = args.selectedAppointment;
|
To know more about ScheduleCellTapped event, Please refer the following KB for this requirement.
KB Link: https://www.syncfusion.com/kb/6203/scheduletapped-event-in-xforms
If the provided samples does not meet your requirement, could you please provide us more information such as Xamarin cross platform, Schedule view along with simple sample (if possible screenshots)? It will be helpful for us to analyze on your requirement and provide you a possible solution.
Note: We will consider this ScheduleCellTapped event and update this in our SfSchedule Xamarin User Guide documentation improvement.
Please let us know, if you have any query.
Regards,
Nijamudeen M.
Hi @Paul,
We have already fixed the issue with "ScheduleCellTapped event which triggered in long press instead of touch (tap) event in MonthView of SfSchedule Xamarin (iOS). The fix for this issue has included in our Essential Studio service pack 1 for Volume 4, 2015 is rolled out and is available for download under the following link:
If the provided solution doesn’t meet your requirement, please revert us with more information so that we could analyze on it and provide you with the better solution.
Please let us know, if you have any query.
Regards,
Nijamudeen M.
Hi Paul,
We don’t have any issues in ScheduleCellTapped event in Xamarin (Android, WinRT and WP81). We have tested the ScheduleCellTapped event in XForms (android) and it is working. We have prepared a simple sample for this. Please find the code example and sample in the below link.
C#: void schedule_ScheduleCellTapped(object sender, ScheduleTappedEventArgs args) { textBlock.Text = args.datetime.ToString(); } |
Sample Link: ScheduleApp_XFORMS.zip
If the provided information does not meet your requirement, could you please provide us more information? It will be helpful for us to analyze on it and provide you a possible solution.
Please let us know, if you have any query.
Regards,
Nijamudeen M.
Is the information in this thread still relevant? I can find no method in SfSchedule called ScheduleCellTapped. In android I use the ScheduleTapped method, but that doesn't exist in the xamarin.ios version.
[c#]
schedule.CellTapped += Schedule_CellTapped;
…
private void Schedule_CellTapped(object sender, CellTappedEventArgs e)
{ var selectedTime = e.Date; var selectAppointment = e.SelectedAppointment; } |