Is there a way to send only rows with data in them? Handsontable automatically creates an empty row under the row you are typing in. When I post that data I do not want that empty set of data. How do I delete that empty row?
Handosntable will automaticaly create an empty row at the bottom of a table, only if you set minSpareRows option to a value greater than 0.
If you want to send only rows with data, you should filter you data source before posting it to the server.
maybe you can use .slice(0, datasource.length-1);
I did something like this:
var gridData = hot1.getData();
var cleanedGridData = {};
$.each( gridData, function( rowKey, object) {
if (!hot1.isEmptyRow(rowKey)) cleanedGridData[rowKey] = object;
});
Most helpful comment
I did something like this: