Duplicated
Last Updated: 02 May 2025 08:28 by ADMIN
Created by: Daniel
Comments: 2
Category: DateTimePicker
Type: Feature Request
0
Currently there is a DisabledDates param on your DatePicker component which is extremely useful, however on the DateTimePicker, it appears there is no way to disabled a list of DateTimes. For now it seems the only work around is once a disabled date is selected, to fire an event and inform the user they cannot select that date and null out what they selected. However a very nice feature to have would be to pass in a list of disabled dates directly to the DateTimePicker similar to DatePicker.

Code example:


Possible:
private List<DateTime> _disabledDates = new();
<TelerikDatePicker DisabledDates="_disabledDates">

Not Possible (Requested Feature)
private List<DateTime> _disabledDates = new();
<TelerikDateTimePicker DisabledDates="_disabledDates">

Duplicated
Last Updated: 26 Sep 2024 07:01 by ADMIN

I want to set the initially focused time/date for the DateTimePicker before opening the picker to improve the user experience. When opening the DateTimePicker with a null value the preselected date is the current day and the time is always 00:00/12:00AM.

I do not want to set value for the component but rather alter the time/date that will be initially focused when opening the popup.

===

ADMIN EDIT

===

The request also applies to the rest of the pickers - DatePicker, DateRangePicker and TimePicker.

Duplicated
Last Updated: 16 May 2023 14:59 by ADMIN
Created by: John
Comments: 1
Category: DateTimePicker
Type: Bug Report
1

Hey,

 

Just reporting this as an active bug. If I have a nullable DateTime object, and I erased the date on the date time picker, it treats the date time field as invalid. I would expect it to be treated as valid.

Related thread: https://feedback.telerik.com/blazor/1582282-datepicker-should-accept-null-value-as-valid-when-bound-to-nullable-datetime

This is the razor page:

<TelerikDatePicker Id="@Id"
   T="DateTime?"
   Value="@Value"
   ValueExpression="@ValueExpression"
   ValueChanged="@ValueChanged"
   OnChange="@OnChange"
   Class="@($"{InputClass}")"
   Enabled="@Enabled"
   Format="@DateTimeFormat.DateOnly"
   Min="@MinDateTime"
   Max="@MaxDateTime"
   Width="@Width"></TelerikDatePicker>
Duplicated
Last Updated: 25 Nov 2021 14:14 by ADMIN
Created by: Jake
Comments: 1
Category: DateTimePicker
Type: Feature Request
0

Disabled Dates are only available in Date or DateRange pickers. They need to be in the DateTime pickers as well.
Now I am going to have to split my components into a Date Picker and a Time Picker, which isn't a great user experience.

DateTimePicker

 

DatePicker