New to Kendo UI for jQuery? Download free 30-day trial

Access Child Properties in ClientTemplate inside DetailTemplate of Grid

Environment

Product Progress® Telerik® UI Grid for ASP.NET MVC
Operating System All
Browser All
Browser Version All

Description

When working with a column ClientTemplate inside the DetailTemplate of the Grid, using the Kendo UI Template hash literal notation gives me access to the parent Grid properties but not to the child Grid properties.

How can I access the child Grid properties inside a nested ClientTemplate?

Solution

Escape sharp symbols that are not part of the current template scope. By design, child Grids are able to get the property values of their parents through ClientTemplates by using the #=ParentProperty# syntax. However, when you call their own property values, use the \\#=OwnProperty\\# syntax instead.

See Also

In this article