Use the onChange callback to track changes made in the table. In the example below, $.ajax is used to load and save grid data.
Note: this is a mockup. Nothing is acually saved. You have to implement that part server-side.
Click "Load" to load data from server