How to extend CalendarInlineEvent

I am trying to use SfCalendar but i am facing a blocking issue.

Starting from this tutorial
https://help.syncfusion.com/xamarin/sfcalendar/create-appointments

I need my CalendarInlineEvent to have some extra properties, at least a custom Id.
How can I do it?

I've used the SfSchedule before and I could extend the ScheduleAppointment class like this:
public class BookingEvent : ScheduleAppointment
    {
        public int Id { getset; }
    }

and then I was able to get my custom object from the command execution:
private void ExecuteCellTappedCommand(CellTappedEventArgs args)
{
    //...
}

where args.Appointments would be a list of BookingEvent objects.

How can I do the same with SfCalendar?
Even if I do this:
BookingsCollection = new CalendarEventCollection();
BookingsCollection.Add(new BookingEvent
{
    Subject = "Test",
    BookingId = 5
});
Here I always have args.selectedAppointment to be a list of CalendarInlineEvent instead of a list of BookingEvent:

protected void Handle_InlineToggled(object sender, InlineToggledEventArgs args)
{
}

So basically i want to do this but with CalendarInlineEvent instead of ScheduleAppointment.







3 Replies

RB Rabhia Beham Kathar Mideenar Syncfusion Team April 23, 2018 11:42 AM UTC

Hi Cristian,

Thanks for Contacting Syncfusion Support.

We have checked the reported issue in SfCalendar Control. We could also reproduce the issue with latest sync fusion assemblies. We are currently working on the reported issue and the issue fix will be available in Volume 2 Release which is expected to be rolled out by the end of May 2018.

Please let us know if you have any concern.

Regards,
Rabhia Beham K.



EC Emmanuel Cesaire FOKO replied to Rabhia Beham Kathar Mideenar March 20, 2020 02:47 PM UTC

Hi Cristian,

Thanks for Contacting Syncfusion Support.

We have checked the reported issue in SfCalendar Control. We could also reproduce the issue with latest sync fusion assemblies. We are currently working on the reported issue and the issue fix will be available in Volume 2 Release which is expected to be rolled out by the end of May 2018.

Please let us know if you have any concern.

Regards,
Rabhia Beham K.


Bonjour il y'a eu une suite a ce problème ? j'ai également besoin de cette fonction. 


SS SaiGanesh Sakthivel Syncfusion Team March 23, 2020 12:40 PM UTC

Hi Emmanuel, 
 
Thank you for Contacting Syncfusion support. 
 
We have analyzed your reported query “How to extend the calendarInlineEvent” from our end. We regret to inform that as of now SfCalendar does not have support to extend the custom CalendarInlineEvent. 
 
Kindly revert us if you have any concern. 
 
Regards, 
SaiGanesh Sakthivel 


Loader.
Up arrow icon