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

Example of Fare Calendar in ASP.NET Core Scheduler Control

This demo illustrates how to customize the scheduler to showcase it as an Airfare calendar depicting the lowest available price on each day of a month for a specific route, say between Barcelona and Los Angeles.

DEMO
SOURCE
Cheapest one way fares from Barcelona to Los Angeles

In this demo, Scheduler initially displays the fare of the airline service which offers lowest price on each day by comparing between the 3 available airlines. Here, the 3 airline services acts as the Scheduler resources. Appointment collection has been dynamically generated for a month (for all the 3 resources) within the generateEvents method and then filtered externally based on the ascending Fare value within the filterByFare method. Since each day of the Scheduler needs to display only a single appointment showing the fare value, therefore it's been queried to take only the first 30 values from the sorted list and assigned it to the Schedule dataSource. Here, the filtering process needs to be carried out during the databinding event and therefore, the dataSource of Scheduler is assigned within this event.

Scheduler has been rendered in a readonly mode and therefore no editing actions are allowed here. To customize the look of the appointments that displays the fare value, template option within the eventSettings is being used. To highlight the day that holds the overall lowest price of a month, the background color of that day's cell is customized within the dataBound event. Also, the tooltip has been enabled with template option to display the flight details in a customized style.

Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab