dx-data-grid add event without inside add button like batch add operations.
I use these versions
angular 10.2
devextreme 20.2.5
devextreme-angular 20.2.5
I have a dx-data-grid as below
<dx-data-grid
id="gridContainer"
[dataSource]="myCustomDataStore"
[showBorders]="true"
[remoteOperations]="true"
[repaintChangesOnly]="true"
(onSaving)="onSaving($event)">
<dxo-editing
mode="batch"
[allowAdding]="true"
[allowDeleting]="true"
[allowUpdating]="true"
></dxo-editing>
<!--here is my columns -->
</dx-data-grid>
setNewLine() { this.myCustomDataStore.store().push([ { type: "update", data: data } ]); }
i want to when I II click setNewLine() , create a new line as batch new line like this. Because otherwise save button wont activate.
How can i active save button.