dx-data-grid add 事件,没有像批量添加操作那样的内部添加按钮。
我使用这些版本
角度 10.2
devextreme 20.2.5
devextreme-angular 20.2.5
我有一个 dx-data-grid 如下
<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([ { 类型:“更新”,数据:数据 } ]); }
我想当我点击 setNewLine() 时,像这样创建一个新行作为批处理新行。因为否则保存按钮不会激活。
如何激活保存按钮。