I use below code to remove the selected rows in grid. But every time when I click a button to call this method, it only remove one row, not all selected rows. Am I missing something?
function RemoveRecords() {
var gridAdditive = $("#gridEdit").data("kendoGrid");
gridAdditive.select().each(function () {
gridAdditive.dataSource.remove(gridAdditive.dataItem($(this).closest("tr")));
});
};