SfCalendar CalendarInlineEvent tapped event?

I am looking for a way to handle a CalendarInlineEvent being tapped but I cannot seem to locate it.

I have found this post: https://www.syncfusion.com/forums/124342/on-tap-event-of-detail-appointment

But the void Handle_OnCalendarTapped(object sender, Syncfusion.SfCalendar.XForms.CalendarTappedEventArgs args) only fires when a day is clicked and the multiple appointments are shown.  It does not fire where I try to click/tap on the appointments themselves.  I have also tried Cal_OnInlineLoaded but that doesn't seem to give me what I want either.

Is there an event that we can capture that is fired after the inline events are listed and one is then clicked/tapped?  Do I need to switch to SfSchedule for this?


2 Replies

PA Paul Anderson S Syncfusion Team July 3, 2018 06:06 AM UTC

Hi Stan,

Thank you for using Syncfusion products.

In SfCalendar currently we dont have any event to get fired when we tap an inline event listed under a date. We can workaround to achieve your requirement by provided a custom view to the inline events listed using the InlineEventLoaded event for which we can implement Tapped event in the sample and perform our operations.

Code Snippet:

calendar.OnInlineLoaded+= Calendar_OnInlineLoaded;

void Calendar_OnInlineLoaded(object sender, InlineEventArgs args)
{
Label label = new Label();
label.GestureRecognizers.Add(new TapGestureRecognizer(HandleAction);
args.View = label;
}

void HandleAction(View arg1, object arg2)
{
//Operations
}

We will get back to you soon with the possibilities of the requested requirement using SfSchedule control.

Regards,
Paul Anderson


PA Paul Anderson S Syncfusion Team July 3, 2018 10:22 AM UTC

Hi Stan,

In our SfSchedule control we have support for MonthInlineAppointmentTapped event which will be fired when we tap an inline appointment listed under a date.

For more information, please check with our UG from below link.

https://help.syncfusion.com/xamarin/sfschedule/monthview#getting-inline-appointment-details

Regards,
Paul Anderson

Loader.
Up arrow icon