Completed
Last Updated: 27 Apr 2022 08:18 by ADMIN
Vitaliy
Created on: 08 Mar 2022 09:12
Category: Grid
Type: Bug Report
3
The Default Editor template "Date" is not rendered properly

### Bug report

When a specified gird column has a property '.EditorTemplateName("Date")', the default DatePicker editor is not rendered properly.

### Reproduction of the problem

1. Create a new Telerik ASP.NET Core MVC Application by using the "Create New Project Wizard". Use the "Grid and Menu" Template;

2. Make the Grid "InLine" editable;

3. Set the property '.EditorTemplateName("Date")' to the "OrderDate" grid column;

4. Run the application and try to edit an existing record. The DatePicker editor is not displayed as expected.

Attached is a runnable sample for reproduction.

### Expected/desired behavior

The closing bracket in the DatePicker configuration should be moved at the end:

//Current configuration
@model DateTime?

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

//Updated configuration
@model DateTime?

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



### Environment

* **Kendo UI version: 2022.1.301
* **jQuery version: 1.12.4
* **Browser: [all]

Attached Files:
3 comments
ADMIN
Tsvetomir
Posted on: 31 Mar 2022 15:04

Hi VISHAAL,

Indeed, a bracket has been misplaced in the editor. Therefore, you could navigate to "~Views/Shared/EditorTemplates/Date.cshtml" and fix the positioning of the bracket manually. The exact incorrect and correct positions have been highlighted in the first post of this bug report. 

 

Regards,
Tsvetomir
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.

VISHAAL
Posted on: 24 Mar 2022 19:13

Is there a fix for this?

Ankit
Posted on: 10 Mar 2022 12:14
Exactly that needs a fix