Completed
Last Updated: 25 May 2021 09:51 by ADMIN
Chad
Created on: 11 Feb 2013 03:40
Category: UI for ASP.NET MVC
Type: Feature Request
6
MVC Grid to respect UIHint
Here is how the support team explained the priority of what editor template is used in the MVC grid:
"Actually the behavior is if the EditorTemplateName method is not used to specify template then the ForeignKey editor template is used. If the EditorTemplateName method is used - the template which is passed is used. If there is no such template, it fallbacks and uses the UIHint attribute or if there is not such the default one is used."

I'd think the priory should be:
1.)  If EditorTemplateName is specified, use that,
2.)  If UIHint in Model class is specified, use that,
3.)  Then use default editor template (i.e. ForeignKey.cshtml)
1 comment
ADMIN
Viktor Tachev
Posted on: 25 May 2021 09:51

Hi,

This functionality is available out of the box. The custom editor demo linked below showcases it with the Category column.

https://demos.telerik.com/aspnet-mvc/grid/editing-custom

 

Regards,
Viktor Tachev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.