我有一个Kendo Angular Grid,我想在其中一次通过保存按钮更新整个网格,而不是单行更新。如何将更新的网格数据保存到组件。如何在剑道网格中实现2向绑定
<kendo-grid [data]="gridView"
[height]="550"
[pageSize]="gridState.take" [skip]="gridState.skip" [sort]="gridState.sort"
[pageable]="true" [sortable]="true" (add)="addHandler($event)" (save)="saveHandler($event)"
(edit)="editHandler($event)" (remove)="removeHandler($event)" (cancel)="cancelHandler($event)" (dataStateChange)="dataStateChange($event)"
[navigable]="true">
<ng-template kendoGridFooterTemplate>
<button (click)="gridSave($event, gridView, dataItem)" primary="true">Save</button>
<button>Cancel</button>
</ng-template>
我想用gridSave函数单击获取更新的网格数据。