Peter,
As there is no server synchronization, in the data source I have:
deleterow: function (rowid, commit) { commit(true); }
In the grid initialization, I have this for the delete column:
{text: "Delete", columntype: "button", cellsrenderer: deleteRenderer, buttonclick: deleteRow, filterable: false, sortable: false, pinned: true }
And the function deleteRow:
function deleteRow( rowId ) { if ( confirm( "Confirm you want to delete this entry" ) ) { var rowscount = $("#registerGrid").jqxGrid('getdatainformation').rowscount; if ( rowId >= 0 && rowId < rowscount ) { // 1. Remove the row from the grid var id = $( "#registerGrid" ).jqxGrid( 'getrowid', rowId ); var commit = $( "#registerGrid" ).jqxGrid( 'deleterow', id ); } }}
What am I missing, that ‘commit’ is always false?
Regards,
Roy