or
$(document).ready(function () { $("#Journeys").kendoGrid({ scrollable: false, pageable: true, sortable: { mode: "single", allowUnsort: false }, filterable: true }); });<table id="Journeys"> <colgroup> <col style="width: 28px;" /> <col style="width: 180px;" /> <col style="width: 210px;" /> <col style="width: 150px;" /> <col style="width: 130px;" /> </colgroup> <thead> <tr> <th data-field="rank"></th> <th data-field="Date">Date/Time</th> <th data-field="Journey">Journey/Action</th> <th data-field="Charge">Charge</th> <th data-field="Action"></th> </tr> </thead> <tbody> @foreach (var model in Model) { <tr> <td></td> <td>@Html.Encode(model.Date)</td> <td>@Html.Encode(model.JourneyDescription)</td> <td>@Html.Raw(model.FormattedCharge)</td> <td></td> </tr> } </tbody></table>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');$('#footer-remove').off().on('click', function () { kendoGrid.removeRow('table tr[data-uid="' + selectedRow.uid + '"]'); console.log(gridDataSource._destroyed); });