appointment limited each quarter of hour

Hi,


Is it possible to just allow quarter of hour for appointments in scheduler control?


5 Replies

VM Vidyalakshmi Mani Syncfusion Team December 13, 2024 02:09 PM UTC

Hi Carpenter,


Thank you for reaching out to us. You can use the MinimumAppointmentDuration property to restrict the appointment duration to 15 minutes. By setting this property, you will not be able to resize appointments to a duration shorter than 15 minutes. Additionally, if you try to create an appointment with a duration less than 15 minutes (e.g., 10 minutes), it will automatically be adjusted to 15 minutes.


Is this the behavior you're looking for? If not, please provide more details about your requirements, and we’ll be happy to assist further.


Regards, 

Vidyalakshmi M.




TC the carpenter December 13, 2024 02:41 PM UTC

Thanks for your answer.

But I want to allow only hours with quarter like 9:00, 9:15, 9:30, 9:45, and that for each hour.


Thank you


Jim



VM Vidyalakshmi Mani Syncfusion Team December 14, 2024 12:35 PM UTC

Hi Carpenter,


To display timeslots in 15-minute intervals, you can adjust the `TimeInterval` property in both the `DaysViewSettings` and `TimelineViewSettings` of the SfScheduler. This will allow you to customize the time slots to appear in the desired 15-minute increments. For further details, please refer to our User Guide documentation.



If you have any additional questions or need further assistance, feel free to reach out.


Regards,

Vidyalakshmi M.




TC the carpenter December 16, 2024 05:37 AM UTC

Hi,

Thank you for your retrun, but it 's not what I want to do. 

When resizing an appointment with appointment editor or directly on the scheduler, I only want to allow 15-minute intervals 

Thank you


Jim



VM Vidyalakshmi Mani Syncfusion Team December 16, 2024 02:14 PM UTC

Hi Carpenter,


Currently, the WPF SfScheduler does not have support to restrict appointment resizing to 15-minute intervals. However, we have logged a feature request for this functionality, and we plan to include it in any of our upcoming releases. We will notify you as soon as this feature is implemented.  


Feedback link: Snap-to-grid-support-to-resize-the-appointment-in-the-scheduler


In the meantime, you can achieve this requirement by utilizing the `AppointmentResizing` event. This event allows you to retrieve the `StartTime` and `EndTime` of the appointment being resized. You can then round these values to the nearest 15-minute interval and commit the adjusted times using the `CanCommit` property.   For additional details, please refer to our User Guide documentation. Let us know if you need any further assistance, and we will be happy to help.  


Regards,

Vidyalakshmi M.



Loader.
Up arrow icon