Edit this page

Access Child Properties in ClientTemplate inside DetailTemplate of Grid

Environment

Product Progress Kendo 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

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy