Multi Selection in Calendar Control

27 Aug 20261 minute to read

Calendar provides an option to select single or multiple dates by using the isMultiSelection and values properties. By default, the isMultiSelection property is disabled.

API Type Description
isMultiSelection Boolean Enables the multi-selection option in the Calendar control
values Date[] Gets or sets the selected dates in multi-selection mode

The following example demonstrates the isMultiSelection and values properties of the Calendar control.

@Html.EJS().Calendar("calendar").IsMultiSelection(true).Render()
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace EJ2CoreSampleBrowser.Controllers
{
    public class CalendarController : Controller
    {
        public ActionResult Multi()
        {
            return View();
        }
    }
}

View Sample in GitHub.