New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Using the Editor Component as an Editor Template for Child Grid in Hierarchy

Updated on Dec 10, 2025

Environment

Product Version2022.3.1109
ProductTelerik UI for ASP.NET MVC Grid

Description

How can I use a Nested Component as an Editor Template in a Child Grid?

Solution

When using a Nested Component internally, the special symbols should be manually escaped. To use a Nested Components as an Editor Template for a Child Grid in hierarchy, implement the Editor Template as follows:

Razor
@model TelerikMvcApp90.Models.Course

@Html.Kendo().EditorFor(model => model.Description).Deferred()

@Html.Raw(Html.Kendo().DeferredScriptsFor("Description").ToHtmlString().Replace("\\\"{0}\\\"", "\\\\\"{0}\\\\\""))

More ASP.NET MVC Grid Resources

See Also