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

let-dataItem gives access to the FormGroup instead of the dataItem in kendoGridEditTemplate

1 Answer 1594 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 06 Oct 2020, 10:43 AM

Hi,

 

In a definition like below I get the same Object in the 'dataItem' parameter as in the 'formGroup' parameter. This leads to me not being able to access the dataItem in my template.

 

<ng-template kendoGridEditTemplate let-dataItem let-formGroup="formGroup">
<!-- Usage of both dataItem and formGroup -->           
</ng-template>

Jeremy
Top achievements
Rank 1
Iron
commented on 16 Jul 2021, 03:49 PM

You get the 'dataItem' required by assigning let-dataItem, rather than its short form, i.e. for the case shown: -

<ng-template kendoGridEditTemplate let-dataItem="dataItem" let-formGroup="formGroup">

1 Answer, 1 is accepted

Sort by
0
Jeremy
Top achievements
Rank 1
Iron
answered on 16 Jul 2021, 03:49 PM
You get the 'dataItem' required by assigning let-dataItem, rather than its short form, i.e. for the case shown: -

<ng-template kendoGridEditTemplate let-dataItem="dataItem" let-formGroup="formGroup">
Tags
Grid
Asked by
Philip
Top achievements
Rank 1
Answers by
Jeremy
Top achievements
Rank 1
Iron
Share this question
or