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
close icon

SfCalendar OnCalendarTapped + DataSource.Add

Hi,

I have a basic SfCalendar defined in XAML with ShowInlineEvents="true" (and currently testing on Android).
After calling OnCalendarTapped, I try to add a new event to the Calendar's Data Source by doing the follow:

CalendarInlineEvent myEvent;
sfCalendar.OnCalendarTapped += (object sender, CalendarTappedEventArgs args) =>
{
                DateTime date = args.datetime;

                myEvent= new CalendarInlineEvent();
                myEvent.StartTime = date;
                myEvent.EndTime = date;
                myEvent.Subject = "Go to Meeting";
                myEvent.Color = Color.Blue;
                sfCalendar.DataSource.Add(myEvent);
};

The issue is that nothing is being displayed, even though the event has been added to the Data Source (I have checked during runtime and it is properly working).

Bug or am I missing something out?
Cheers!

Francesco

1 Reply

HM Hemalatha Marikumar Syncfusion Team June 17, 2016 05:30 PM UTC

Hi Francesco,

Thanks for contacting Syncfusion Support.

We were able to reproduce the reported issue "Unable to update the inline event inside the calendar Tapped event " at our side. We have logged the defet report regarding this. The fix of the issue will be available in any of our upcoming relese. Please visit our website periodically to know the release .

Regards,
Hemalatha M.R

Loader.
Live Chat Icon For mobile
Up arrow icon