Editing entityspaces.js demonstration. We are using KoGrid in the example for the grid control. The KoGrid control is new so please excuse any painting errors you might see. A screen like this can be written in mere minutes, the only code we really had to hand code to make it "happen" was to add the code shown beneath the buttons into our button click event handlers. It couldn't be any easier. Both the employees.js file and the WCF JSON service were generated for us by EntitySpaces Studio.


NOTE: This is accessing a real database. Some records cannot be deleted because of foreign key constraints. We are showing all of the low level errors that come back from our service just as an example. In real world scenarios you would not do this, of course.
  
Edit Selected Employee Here
The Original Values are stored for each column. They are not shown below. However, they are restored when you selected 'Reject Changes'.
EmployeeID:
First Name:
Last Name:
RowState:

RowState : Unchanged = 2, Added = 4, Deleted = 8, Modified = 16
vm.collection.markAllAsDeleted();

vm.collection.markAsDeleted(vm.mySelectedItem());

vm.collection.rejectChanges();

var newEmployee = vm.collection.addNew();
newEmployee.FirstName("Joe");
newEmployee.LastName("Smith");

vm.collection.save();
The Collections Deleted Item List (collection.es.deletedEntities)