grid batch edit get/set values

0 Answers 95 Views
Grid
jan
Top achievements
Rank 1
Iron
jan asked on 12 Dec 2021, 05:38 PM

Hi,

there is this blog post about batch editing in the grid:

grid batch editing

I have two questions regarding it:

1. How to get a form field value?

Let's suppose, I want to get a value of a form field in the active row. For this I created a value change event and tested this:


<FormGroup[]>this.formArray.value)[rowIndex].controls

However, it returns undefined. So, no 'get' works too. But on the other side, if I log just this:


<FormGroup[]>this.formArray.value)[rowIndex]

I get the form fields.

2. How to set a form field value in the active row?

Thanks.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
jan
Top achievements
Rank 1
Iron
Share this question
or