This is a migrated thread and some comments may be shown as answers.

Kendo UI angularJS Grid: Nested Grid template issues

1 Answer 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kurien
Top achievements
Rank 1
Kurien asked on 26 May 2020, 09:21 PM

I have a grid inside the detailed row with another datasource. The column template inside the detailed row is not taking the format

template: `<label>{{dataItem.Name}}</label>`

When running it shows as {{dataItem.Name}}.

 

It also doesn't run the ng-if, ng-show .... conditions 

 

The parent grid shows everything correctly.

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 28 May 2020, 01:15 PM

Hello Kurien,

In this case, two templates are nested one within another - the detail template and the client template of the child grid. To omit evaluating the client template of the child grid when the detail template is compiled, it is necessary to escape the # literals. For example:

template: `<label>\\#=dataItem.Name\\#</label>`

More information can be obtained in the following article:

Let me know if you have any questions.

Regards,
Nikolay
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
Kurien
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or