With version 2.18.8, the DatePicker will allow a disabled date. The user is unable to select a disabled date, but a disabled date is selected when using the arrow buttons to move to the next month. See the screen shots for samples.
public async Task SetFilingDate(DateTime filingDate) { FilingDate = filingDate; await Task.CompletedTask; } public async Task SetYearEnd(DateTime yearEnd) { YearEnd = yearEnd; await Task.CompletedTask; } protected void DisabledDates(DateRenderEventArgs args) { args.Disabled = (args.Date >= YearEnd); if (args.Date.Equals(FilingDate)) { args.Attributes.Add("style", "background-color: var(--primary); border-color: white;"); } }