RadzenDatePicker: disabled dates looks clickable and are clickable #285

Open
opened 2026-01-29 17:34:45 +00:00 by claunia · 0 comments
Owner

Originally created by @lg2de on GitHub (Jan 3, 2022).

Describe the bug
When I disable some dates in a RadzenDatePicker using DateRender callback the disabled dates looks clickable, are clickable, and clicking the selection dialog closes, which is unexpected.

To Reproduce

<RadzenDatePicker TValue="DateTime" DateFormat="d" DateRender="this.DateRender" />

private void DateRender(DateRenderEventArgs args)
{
    args.Disabled = args.Date < DateTime.Today;
}
  1. Open the selection dialog.
  2. Switch to previous month
  3. Move mouse over (disabled) dates. (they looks clickable)
  4. Click on date of previous month. The selection dialog closes. (The disabled date is not taken. But there is no clear visual feedback that a disabled date was selected.)

Expected behavior
The disabled dates should not be clickable. Clicking disabled dates should not close the selection dialog.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Vivaldi
  • Version 5.0.2497.32
Originally created by @lg2de on GitHub (Jan 3, 2022). **Describe the bug** When I disable some dates in a `RadzenDatePicker` using `DateRender` callback the disabled dates looks clickable, are clickable, and clicking the selection dialog closes, which is unexpected. **To Reproduce** ``` <RadzenDatePicker TValue="DateTime" DateFormat="d" DateRender="this.DateRender" /> private void DateRender(DateRenderEventArgs args) { args.Disabled = args.Date < DateTime.Today; } ``` 1. Open the selection dialog. 2. Switch to previous month 3. Move mouse over (disabled) dates. (they looks clickable) 4. Click on date of previous month. The selection dialog closes. (The disabled date is not taken. But there is no clear visual feedback that a disabled date was selected.) **Expected behavior** The disabled dates should not be clickable. Clicking disabled dates should not close the selection dialog. **Desktop (please complete the following information):** - OS: Windows 10 - Browser Vivaldi - Version 5.0.2497.32
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#285