• Material 3
  • Fluent
  • Bootstrap v5
  • Tailwind CSS
  • High Contrast
Preferences
Theme Selection
Theme Modes
Mode Selection
Touch
Mouse
Localization
*Translated by Google Translator.
Currency

Example of Different Work Days in ASP.NET MVC Scheduler Control

This demo showcases the different available dates of doctors and their appointments on those days.

DEMO
SOURCE

In this demo, different working days are assigned by passing the WorkDays collection for each doctor to show their available dates. On each of their available dates, their daily available time range is also depicted by mentioning the StartHour and EndHour for each doctor. These values needs to be provided along with the resource DataSource by mapping the appropriate fields namely WorkDaysField, StartHourField and EndHourField.

Here, we have customized the background cell color of the available times of each doctor using RenderCell event to denote that, only those timeslots are available for booking appointments. All other cells are simply read-only and no appointments can be booked on it. Also, if the applicable timeslot already contains an appointment, then no more appointments can be added to that cell which has been prevented by using the isSlotAvailable function within the ActionBegin event checking for EventCreate and eventChange request type. The resource header is customized by using the ResourceHeaderTemplate option.

Transform your ASP.NET MVC web apps today with Syncfusion ASP.NET MVC components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE