Custom meeting resize

Hi,

I want to change SfScheduler meeting time after resize. For example if user resize meeting to 07:17 i want to update meeting and set it to 07:30. 
It`s no problem with standard meeting - I`m using AppointmentResizing event on ResizeAction.Committing by modifying e.Appointment.EndTime. It works as it should.

But when I`m using custom meeting with custom appointment class - mapped by AppointmentMapping it`s no longer working. 
I tried changing values in e.Appointment.Data but that also didn`t work.

3 Replies 1 reply marked as answer

KA Karthikraja Arumugam Syncfusion Team August 25, 2020 01:19 PM UTC

Hi Dominik, 
 
Greetings from Syncfusion. 
 
We have checked the reported issue on “Resizing with custom appointment” and we would like to inform you that to update custom appointment properties in manual you have to raise PropertyChanged notification for custom appointment class.  So please implement INotifyPropertyChanged interface for your custom appointment class and raise property change notification for each property to reflect the changes in view. 
 
Please refer our model class, 
  public class Meeting : INotifyPropertyChanged 
  { 
        private string eventName; 
        private DateTime from; 
        private DateTime to; 
        private Brush color; 
 
        public string EventName 
        { 
            get { return eventName; } 
            set 
            { 
                eventName = value; 
                this.RaisePropertyChanged("EventName"); 
            } 
        } 
 
        public DateTime From 
        { 
            get { return from; } 
            set 
            { 
                from = value; 
                this.RaisePropertyChanged("From"); 
            } 
        } 
 
        public DateTime To 
        { 
            get { return to; } 
            set 
            { 
                to = value; 
                this.RaisePropertyChanged("To"); 
            } 
        } 
 
        public Brush Color 
        { 
            get { return color; } 
            set 
            { 
                color = value; 
                this.RaisePropertyChanged("Color"); 
            } 
        } 
 
        public event PropertyChangedEventHandler PropertyChanged; 
 
        private void RaisePropertyChanged(string name) 
        { 
            this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name)); 
        } 
  } 
 
 
 
We have prepared a sample for your requirement, 
 
We hope this helps. Please revert us if you want any further assistance. 
 
Regards, 
Karthik Raja A 


Marked as answer

DB Dominik Bojdo August 25, 2020 05:15 PM UTC

Thank you, it works now.


KA Karthikraja Arumugam Syncfusion Team August 27, 2020 02:36 AM UTC

Hi Dominik, 
 
Thank you for the update. 
 
Please get in touch with us for any further assistance, we are always happy to help you out. 
 
Regards, 
Karthik Raja A 


Loader.
Up arrow icon