This is a migrated thread and some comments may be shown as answers.

Binding a Date Input to a nullable DateTime?

2 Answers 198 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 07 May 2019, 01:06 PM
I'm trying to bind a TelerikDatePicker component to a nullable DateTime property, but I'm getting a compile time warning of "cannot convert from System.DateTime? to System.DateTime".  Does the TelerikDatePicker support binding to nullable values and if not, could it be changed to do so?

2 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 07 May 2019, 01:14 PM
Hello,

Currently only DateTime is supported, but we'll add support for nullable DateTime as soon as we can - in a few weeks at the most.

Regards,
Bozhidar
Progress TelerikUI for Blazor
0
Tom
Top achievements
Rank 1
answered on 07 May 2019, 01:16 PM
Perfect, thanks Bohzidar.  We've taken the plunge and committed to doing our next production project in Blazor/Core 3, so this is a must for us
Tags
General Discussions
Asked by
Tom
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Tom
Top achievements
Rank 1
Share this question
or