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

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

Environment

Product Version 2022.3.1109
Product Telerik 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:

@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

In this article