I have an kendo.Grid that is using initializing from JSON (MVVM paradigm). It all works fine until made it editable and added a toolbar. The destroy functions are working just fine.
But the SaveChanges in the toolbar does not seem to do anything. Why do I say that? Because if I hit [Cancel Changes] button in the toolbar, all rows are deleted, and I am left with an empty Grid (only headers).
But the SaveChanges in the toolbar does not seem to do anything. Why do I say that? Because if I hit [Cancel Changes] button in the toolbar, all rows are deleted, and I am left with an empty Grid (only headers).
<div id="layerTable" class="Part" data-role="grid" data-column-menu="true" data-filterable="true" data-sortable="true" data-scrollable="false" data-resizable="true" data-reorderable="true" data-groupable="true" data-editable="{confirmation: false}" data-bind="source: LayerTable" data-toolbar='["save","cancel"]' data-columns='[ "Class", "Type", "FileCount", {field: "Size", format: "{0:n3} MB", }, {field: "Date", format: "{0:F}" }, "Path", {command: "destroy"}, ]'></div>