Hey together,
I am using the React version of the Ej2 Grid and got multiple questions:
Question #1: I want to add multiple empty rows programmatically. I have a Dialog, where I can put a number (state). I have found a workaround to use `addedRecords` of `batchChanges`
If I use the "addContainersNotWorking" function the following behaviour occours:
If I pass the number 1 - one element is added.
If I pass the number 2, at all it's add 3 elements. He always takes the previous element(s) to the loop. How to prevent this?
Question #2:
I am using the Grid in { 'mode: 'Batch' }.
If I add or delete a row , I trigger programmatically `grid?.endEdit()` in the events `batchAdd`and `batchDelete` and the changes are automatically applied to the `dataSource`.
Then they are not marked as "edited" in the Grid and automatically saved.
I know and read in the community forum it's not 100% what's your intention of the `batch`-Mode is, but I don't want my users to have press the `save` button of the grid, because it may lead to data loss on submit the form, forget to save the batch.
How I can hook into the event where you set the 'is-Edited' class of the cell or you decide, the "batchSave" is enabled, so I can autoSave/grid?.endEdit() functionality programmatically?
Thanks in advance and thank you for your efforts to make the life as a developer much easier :)