BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi,
I'm using the SFSchedule in a DataBinding technique.
As it shown in your samples, I'm using the ItemsResource property to bind my collection.
<Schedule:SfSchedule x:Name="schedule" ItemsSource="{Binding MappedAppointments}">
<Schedule:SfSchedule.AppointmentMapping>
<Schedule:ScheduleAppointmentMapping SubjectMapping="MappedSubject" StartTimeMapping="MappedStartTime" EndTimeMapping="MappedEndTime">
</Schedule:ScheduleAppointmentMapping>
</Schedule:SfSchedule.AppointmentMapping>
</Schedule:SfSchedule>
Now, I want to use my own editor to edit the appointment, but there is no option to know which is the selected item.
If I'm registered on the Tapped event, I will get the selected appointment, but won't know which of my items in the MappedAppointment was changed.
Is there's an option to use data binding and edit an event using my own edit page ? If not - is there an option to know when an appointment is saved and changed and what are the changes that were made ?
Thanks,
Kesem
Hi Kesem,
Thanks for your interest in
Syncfusion products.
Based on the provided
information, we suspect that your requirement is to bind the custom data
collection with the ItemsSource property of the SfSchedule and to get the
selected appointment when tapped over it. For that, instead of using tapped
event, use ScheduleTapped event of the SfSchedule.
Please refer the below code
snippet to get the selected appointment from ScheduleTapped event,
Code Snippet:
[C#] // this.schedule.ScheduleTapped
+= schedule_ScheduleTapped; // void
schedule_ScheduleTapped(object sender, ScheduleTappedEventArgs e) { ScheduleAppointment
selectedAppointment = e.Appointment as ScheduleAppointment; } |
The selected appointment can be
edited with the custom appointment editor (own editor page) for that please
refer the sample in the below location.
Dashboard - > WinRT ->
Schedule -> Customization Demo
If the provided solution doesn’t
meet your requirement, please revert us back with more information, so that we
could analyse on it and provide you better solution.
Please let us know, if you need
any further assistance.
Regards,
Joy Oyiess Rex K
Hi Kesem,
Please ignore our previous update.
Thanks for your interest in Syncfusion products.
Based on the provided information, we suspect that your requirement is
to bind the custom data collection with the ItemsSource property of the
SfSchedule and to get the selected appointment when tapped over it. For that,
instead of using tapped event, use ContextMenuOpening event of the SfSchedule
to get the selected custom appointment.
Please refer the below code snippet to get the selected appointment from
ContextMenuOpening event,
Code Snippet:
[C#] // this.schedule.ContextMenuOpening
+= schedule_ContextMenuOpening; // void
schedule_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e) { MappedAppointment
appointment = e.Appointment as MappedAppointment; } |
The selected appointment can be edited with the custom appointment
editor (own editor page) for that please refer the sample in the below
location.
Dashboard - > WinRT -> Schedule -> Customization Demo
If the provided solution doesn’t meet your requirement, please revert us
back with more information, so that we could analyse on it and provide you
better solution.
Please let us know, if you need any further assistance.
Regards,
Joy Oyiess Rex K