jQWidgets Forums

jQuery UI Widgets Forums Grid Upgrading to GRID 2.6 EDIT cell not working

This topic contains 1 reply, has 1 voice, and was last updated by  dujmovicv 12 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • dujmovicv
    Participant

    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!


    dujmovicv
    Participant

    I’m sorry guys, my mistake… The error was in the controller php file. Sorry to flood the forum with this otiose post!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.