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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to gather information in code behind to send to database?

Thread ID:





123908 May 1,2016 11:31 PM UTC May 3,2016 10:05 AM UTC WPF 4
Tags: SfSchedule
Matthew spencer
Asked On May 1, 2016 11:31 PM UTC

I apologise for what I'm sure is a very primitive question.

I created a custom appointment editor and have managed to create and send data to a database when I add appointments, but I can't work out how to edit appointments. My problem lies in not knowing how to gather information about the appointment in code-behind. I've found lots of guides detailing how to add new appointments, but nothing showing how to gather information in the code behind in order to send to a database. For example, how do I set a string to the value of the MappedSubject?

Again, I apologize for the primitive question, I'm simply trying to make a little application for my wife and I and have very limited knowledge of c# or WPF.

Vigneshkumar Ramasamy [Syncfusion]
Replied On May 2, 2016 12:43 PM UTC

Hi Matthew, 
Thanks for using Syncfusion product. 
Based on the provided information we suspect that, the properties which you have used in the custom appointment class may not be INotifyPropertyChanged. If it is not make it as INotifyPropertyChanged. 
 If the above provided solution doesn’t satisfy your requirement, could you please provide a simple sample to reproduce this issue, so that we could analyze on you requirement further and provide you the possible solution. 
Vigneshkumar R

Matthew spencer
Replied On May 3, 2016 01:23 AM UTC

Sorry for not being clear. I basically just need to know how to gather information from the clicked appointment so I can link it with my custom appointment editor window.

private void SfSchedule_OnAppointmentEditorOpening(object sender, AppointmentEditorOpeningEventArgs e) {

e.Cancel = true;

if (e.Action.ToString() == "Add")
                    ApptEditor = new CalendarApptPopUp();
                else if (e.Action.ToString() == "Edit")
      // gather information from the clicked appointment so I can link it to my custom appointment editor.


Matthew spencer
Replied On May 3, 2016 03:01 AM UTC

Urgh, feel free to delete this. I misread that you had to cast the e.appointment.

Thanks for your time.

Vigneshkumar Ramasamy [Syncfusion]
Replied On May 3, 2016 10:05 AM UTC

Hi Matthew, 


We are glad to hear that your issue has been resolved. Please let us know if need further assistance on this.  



Vigneshkumar R 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon