jQWidgets Forums

jQuery UI Widgets Forums Grid updaterow question

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • updaterow question #14492

    DavidSimmons
    Participant

    Can you tell me if there is a way to get the column index or column name that was updated before synchronize with the server is sent?

    updaterow: function (rowid, newdata, commit) {

    alert(columnName); ***************

    // synchronize with the server – send update command

    }

    What exactly is expected back from the server if true or false and in what syntax is it expected?
    JSON example
    [{“success”:”true”},{“error”:”false”}]

    [{“success”:”false”},{“error”:”true”}]

    updaterow question #14538

    Peter Stoev
    Keymaster

    Hi David,

    If the update is through cells editing, you can use the “cellendedit” event to get information about the edited cell. You can save that information in your own variables and use them in the “updaterow” callback function, if necessary.

    $("#jqxgrid").bind('cellendedit', function (event) {
    var column = args.datafield;
    var row = args.rowindex;
    var value = args.value;
    var oldvalue = args.oldvalue;
    });

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.