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.

Snapping to TimeInterval, automatic IntervalHeight and disabling edition for recurring appointments

Thread ID:

Created:

Updated:

Platform:

Replies:

130291 May 4,2017 10:29 AM May 8,2017 09:47 AM WPF 3
loading
Tags: SfSchedule
Vincent
Asked On May 4, 2017 10:29 AM

Hi,

I have few questions regarding the SfSchedule control (WPF). Your assitance is greatly appreciated.

- How can I snap the appointments to the closest TimeInterval when dragging it? I saw this thread but wasn't able to find a solution: https://www.syncfusion.com/forums/116075/snapping-to-timeinterval

- Setting "AllowEdit" property to false prevent from the appointment editor to open on double click. However when double-clicking on a recurring event, a message box appears asking if I want to open this specific occurrence or the full serie. How can I prevent this message box to appear?

- Is there a way to make the SfSchedule automatically adapt the IntervalHeight property to the available space, especially when the windows is resized?

Thanks a lot for your help.

Regards,

Vincent

Subburaj Pandian Veluchamy [Syncfusion]
Replied On May 5, 2017 08:57 AM

Hi Vincent, 
 
Thank you for your interest in Syncfusion products. 
 
Query 1: Dragging appointment within TimeInterval 
Your requirement of positioning the Appointment (StartTime) within the TimeInterval instead of resizing it in Schedule WPF, can be achieved by using AppointmentEndDragging event in the Schedule. Using this event, you can get the Appointment details while dragging the Appointment, from that you can modify the selected Appointment position (StartTime) based on TimeInterval. We have prepared sample based on your requirement, please refer the below sample. 
 
 
Query 2: Disabling recurrence flyout  
As of now, the mentioned support to disable the Recurrence flyout is not available in Schedule WPF. 
 
Query 3: Resizing the Schedule TimeInterval based in the Window Size 
Your requirement of resizing the Schedule TimeInterval based on the output window size can be achieved by setting Schedule Interval height in SizeChanged event in Schedule. Please refer the below code example, 
 
 
  private void SfSchedule_SizeChanged(object sender, SizeChangedEventArgs e) 
        { 
            // TimeInterval - 1 Hour (per day 24) 
            // Schedule Header Height - 80 
            schedule.IntervalHeight =( e.NewSize.Height-80) / 24; 
        } 
 
 
We have included the same in the provide sample as well, could you please check and let us know if you have any query on this. 
 
Regards,  
Subburaj Pandian V.    


Vincent
Replied On May 5, 2017 01:09 PM

Hi,

Thank you very much! Your solution works perfectly.

Do you know if disabling the recurrence flyout will be supported in a future release?

Regards,

Vincent

Sivakumar Punniya Moorthi [Syncfusion]
Replied On May 8, 2017 09:47 AM

Hi Vincent, 
 
Thanks for the Update. 
 
We have logged the feature request “disable the recurrence flyout” for schedule WPF in our database. We will implement this feature in any of our upcoming release. We will let you know once the implementation has done.  
 
Regards, 
Sivakumar P  


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.

;