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

## Environment

<table>
	<tbody>
		<tr>
			<td>Product Version</td>
			<td>2022.3.1109</td>
		</tr>
		<tr>
			<td>Product</td>
			<td>Telerik UI for ASP.NET MVC Grid</td>
		</tr>
	</tbody>
</table>

## 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 EditorTemplate.cshtml
@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

* [ASP.NET MVC Grid Documentation](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/overview)

* [ASP.NET MVC Grid Demos](https://demos.telerik.com/aspnet-mvc/grid/index)

* [ASP.NET MVC Hierarchy Grid Demo](https://demos.telerik.com/aspnet-mvc/grid/hierarchy)

* [ASP.NET MVC Grid Product Page](https://www.telerik.com/aspnet-mvc/grid)

* [Telerik UI for ASP.NET MVC Video Onboarding Course (Free for trial users and license holders)](https://www.telerik.com/aspnet-mvc/documentation/getting-started/video-onboarding)

* [Telerik UI for ASP.NET MVC Forums](https://www.telerik.com/forums/aspnet-mvc)

## See Also

* [Client-Side API Reference of the Grid for ASP.NET MVC](https://docs.telerik.com/kendo-ui/api/ui/grid)
* [Server-Side API Reference of the Grid for ASP.NET MVC](https://docs.telerik.com/aspnet-mvc/api/grid)
* [Telerik UI for ASP.NET MVC Breaking Changes](https://www.telerik.com/aspnet-mvc/documentation/backwards-compatibility/2023-backwards-compatibility)
* [Telerik UI for ASP.NET MVC Knowledge Base](https://docs.telerik.com/aspnet-mvc/knowledge-base)
