Question about saving a modified grid to server


#1

If some rows of a grid have been deleted and server will follow the change, code as below:

const selections = this.productGrid.selection.getCells().slice();
selections.forEach((item) => {
	this.productGrid.data.remove(item.row.id);
});

this.productGrid.data.save(URL);
this.productGrid.data.saveData.then(() => {
	this.loadList();
}).catch(err => {
});

The removed rows will be sent to server but the sent datas have no any differentia to the modified grid rows. I know I can set a “remove” flag to the deleted rows and “update” flag to updated rows but is there any built-in function of dhtmlx to distinguish them?


#2

The porblem is confirmed. We’ll try to erxtend that functionality in the future udpates.