Grid column does not use DateTimePicker when in edit mode

1 Answer 6 Views
DateInput Grid
Lawrence
Top achievements
Rank 1
Lawrence asked on 15 Dec 2025, 09:40 AM

I have created a fresh project with the following variables:

  • Visual Studio 22 Community (Version 17.14.21 )
  • Progress Telerik UI for ASP.NET Core Extension 2025.4.1110.199
  • .NET 9.0
  • Kendo UI v2025.4.1111

I am trying to create a simple grid as following that has an editable `DateTime?` column:

https://netcorerepl.telerik.com/GpFmvpEr29UDYPJN54

It works in the REPL link above, but if I press "Edit" on my local project, the DateTime column defaults to a text input without the datetimepicker buttons (see Attachment-1.png), I'm not sure what I am missing.

 

I've checked that `/Views/Shared/Editor/Templates/DateTime.cshtml` exists and the content is as follows:

@model DateTime?

@(Html.Kendo().DateTimePickerFor(m => m).HtmlAttributes(new { title = Html.ViewContext.ViewData.TemplateInfo.GetFullHtmlFieldName("")}))

I've placed either `[DataType("Date")]` or `[DataType("DateTime")]` annotation on the class property definition and neither worked.

I've used `.EditorTemplateName("DateTime")` and/or `[UIHint("DateTime")]` and it didn't work.

I've created a new Template type and it didn't work.

I'm not sure what else to try to make it work.

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 17 Dec 2025, 12:22 PM

Hi Lawrence,

Thank you for providing detailed descriptions on what you have tried.

By default the Grid will get the editors from the the ~/Views/Shared/EditorTemplates folder. It seems that you have added one extra sub-folder after Editor. Please ensure that you have the DateTime.cshtml file in the EditorTemplates folder and see if the behavior changes.

In case the issue persists, please send us a sample project where the issue is replicated so we can examine it and look for the root cause.

If you would like more information on how Grid editors can be configured you may find the article below interesting.

https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/data-management/grid/editing/inline#editors


Regards,
Viktor Tachev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
DateInput Grid
Asked by
Lawrence
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or