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.
Unfortunately, activation email could not send to your email. Please try again.

Using my own editor to edit an appointment

Thread ID:

Created:

Updated:

Platform:

Replies:

116022 Mar 18,2014 02:07 PM Mar 19,2014 06:27 AM WinRT 2
loading
Tags: SfSchedule
Kesem Zur-Korakin
Asked On March 18, 2014 02:07 PM

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



Joy Oyiess Rex  K [Syncfusion]
Replied On March 19, 2014 01:41 AM

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


Joy Oyiess Rex  K [Syncfusion]
Replied On March 19, 2014 06:27 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;