.NET Core Scheduler - is there a way to restrict specific dates from allowing new appointments?

1 Answer 88 Views
Scheduler
Danielle
Top achievements
Rank 1
Iron
Iron
Danielle asked on 05 Sep 2024, 02:52 PM

I am looking at using the scheduler control (Restrictions in ASP.NET Core Scheduler Component Demo | Telerik UI for ASP.NET Core)

I see there are various ways to restrict appointments, is there a way to do so where certain dates would not allow appointments?  I need to restrict holidays and other specific dates from containing appointments.  

Also, is there a way to restrict appointmetns to specific business hours.  In the demo it has a button to Show Business Hours but appointments don't seem to be restricted to those hours - I was able to schedule one outside of business hours.

Last, is there a way to note certain dates with a specific background color? I want holidays to be clearly shown so it's easier on the user.

Thanks!

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivan Danchev
Telerik team
answered on 10 Sep 2024, 10:26 AM

Hello Danielle,

See the following example: https://netcorerepl.telerik.com/woYZPuPO22oP5Xh348

It shows how to:

1. Color specific slots (holidays). The respective logic is in the Scheduler's onDataBound event handler.

2. Prevent the creation of events on specific slots (holidays) and outside of business hours. The logic for that is in the checkAvailability function, which is called in the Scheduler's onAdd and onSave event handlers.

Regards,
Ivan Danchev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Danielle
Top achievements
Rank 1
Iron
Iron
commented on 10 Sep 2024, 11:42 AM

Thank you Ivan!  That's very helpful.
Ivan Danchev
Telerik team
commented on 13 Sep 2024, 08:58 AM

Danielle,

I am glad I was able to help.

Regards,
Ivan Danchev
Progress Telerik

Tags
Scheduler
Asked by
Danielle
Top achievements
Rank 1
Iron
Iron
Answers by
Ivan Danchev
Telerik team
Share this question
or