Dear All,
a help would be welcomed… I use the grid in my project management software. Everything was OK, then I decided to upgrade the grid to 2.6.0 (I was previously working with 2.4.2). According to the newer version, a new “commit” parameter has to be added. Done. The deleterow function is OK, but I can’t figure out why the script refuses to make changes to the records when I edit/update a table cell.
Here’s my code of the deleterow (WORKING) and updaterow (NOT working) functions (I can post the whole code if you need more details).
deleterow: function (rowid, commit) { // synchronize with the server - send delete command var data = "delete=true&id=" + rowid; $.ajax({ dataType: 'json', url: 'grid/jqwidgets/controllers/projects_controller.php', data: data, success: function (data, status, xhr) { // delete command is executed. commit(true); } }); }, updaterow: function (rowid, rowdata, commit) { // synchronize with the server - send update command var data = "update=true&" + $.param(rowdata); $.ajax({ dataType: 'json', url: 'grid/jqwidgets/controllers/projects_controller.php', data: data, success: function (data, status, xhr) { // update command is executed. commit(true); } }); }
Your help is HIGHLY appreciated!