Here is slimmed down version of code:
And the read works just fine, I remove a row (or many) with this (selectedRow is populated correctly, just skipped for brevity):
And its shows up in gridDataSource._destroyed, all my tests all show that the gridDataSource is dirty.When I call sync, nothing happens if I am just deleting. What am I missing? Thank you.
gridDataSource = new kendo.data.DataSource({ batch: true, transport: { read: { url: 'Equipment' }, destroy: { url: 'Equipment', contentType: "application/json", dataType: 'json', type: "DELETE" }, parameterMap: function (options, operation) { if (operation == "read") { return "this=works-fine"; } else { alert('not reading'); return kendo.stringify(options.models); } } }, schema: { id: "EquipmentId", fields: { EquipmentId: { type: "number" } } } });kendoGrid = gridObj.kendoGrid({ dataSource: gridDataSource, selectable: 'row', navigatable: true, change: rowSelect, sortable: true, pageable: false, editable: { confirmation: false }, columns: [ { field: "EquipmentId" }, ] }).data('kendoGrid');And the read works just fine, I remove a row (or many) with this (selectedRow is populated correctly, just skipped for brevity):
$('#footer-remove').off().on('click', function () { kendoGrid.removeRow('table tr[data-uid="' + selectedRow.uid + '"]'); console.log(gridDataSource._destroyed); });And its shows up in gridDataSource._destroyed, all my tests all show that the gridDataSource is dirty.When I call sync, nothing happens if I am just deleting. What am I missing? Thank you.