- Home
- Forum
- Xamarin.Forms
- How to bind List<T> to DataSource of SfCalendar?
How to bind List<T> to DataSource of SfCalendar?
I'm trying to load a calendar and display some appointments in it. It works fine with the CalendarEventCollection and CalendarInlineEvent but I need to have more control over the events. Right now the CalenderInlineEvent class only has Subject, StartTime, EndTime etc as properties, but in my case, I need to bind the event with more data. The InlineItemTapped event only returns a handful of arguments. Is there a way to create a custom event selector?
SIGN IN To post a reply.
5 Replies
1 reply marked as answer
SP
Sanket Patole
December 17, 2020 02:21 AM UTC
I guess switching to a Scheduler will do, https://www.syncfusion.com/kb/6695/how-to-add-additional-attributes-for-your-appointments?_ga=2.227245405.1132292574.1607975286-2012221636.1607549165
Marked as answer
SS
SaiGanesh Sakthivel
Syncfusion Team
December 17, 2020 12:06 PM UTC
Hi Sanket,
Thank you for using syncfusion products.
We are glad that our solution meets your requirement. Please let us know if you need further assistance.
Regards,
SaiGanesh Sakthivel
SP
Sanket Patole
December 17, 2020 02:15 PM UTC
I'm trying to access the CellTapped event in the SfSchedule control but it only gets invoked when clicked on the Date of the month and not when clicked on the Appointment
<syncfusion:SfSchedule x:Name="schedule" ScheduleView="MonthView" DataSource="{Binding appointmentCollection}">
<syncfusion:SfSchedule.MonthViewSettings>
<syncfusion:MonthViewSettings ShowAgendaView="true" />
</syncfusion:SfSchedule.MonthViewSettings>
<syncfusion:SfSchedule.Behaviors>
<behaviors:EventToCommandBehavior EventName="CellTapped"
Command="{Binding AppointmentSelectedCommand}"/>
</syncfusion:SfSchedule.Behaviors>
</syncfusion:SfSchedule>
SP
Sanket Patole
December 17, 2020 02:25 PM UTC
I'm trying to access the CellTapped event in the SfSchedule control but it only gets invoked when clicked on the Date of the month and not when clicked on the Appointment
<syncfusion:SfSchedule x:Name="schedule" ScheduleView="MonthView" DataSource="{Binding appointmentCollection}">
<syncfusion:SfSchedule.MonthViewSettings>
<syncfusion:MonthViewSettings ShowAgendaView="true" />
</syncfusion:SfSchedule.MonthViewSettings>
<syncfusion:SfSchedule.Behaviors>
<behaviors:EventToCommandBehavior EventName="CellTapped"
Command="{Binding AppointmentSelectedCommand}"/>
</syncfusion:SfSchedule.Behaviors>
</syncfusion:SfSchedule>
SS
SaiGanesh Sakthivel
Syncfusion Team
December 18, 2020 11:39 AM UTC
Hi Sanket,
Thank you for the update.
#Regarding Appointment Tapped event
We would like to inform you that the cell tapped event will trigger only tapping the date cell. We suggest to you to use MonthInlineAppointmentTapped event to get the details of the appointment.
Please refer to the following UG Documentation ‘How to get the Inline appointment details in SfSchedule’.
Please refer to the following KB link for your reference.
We hope this helps.
Regards,
SaiGanesh Sakthivel
SaiGanesh Sakthivel
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
- Marked answer
-
SP Sanket Patole
- Dec 16, 2020 11:32 PM UTC
- Dec 18, 2020 11:39 AM UTC