jQuery UI Widgets Forums Grid Name of the edited column

This topic contains 2 replies, has 2 voices, and was last updated by  Martin 6 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Name of the edited column #102696

    nostromo
    Participant

    Dear, what is the best way to get the name of the column
    that has been edited in the trigger updaterow:

    $(document).ready(function () {

    var data = generatedata(200);
    var source =
    {
    localdata: data,
    datatype: “array”,
    updaterow: function (rowid, rowdata, commit) {

    “capture here the name of the edited column”

    commit(true);
    },

    Name of the edited column #102697

    nostromo
    Participant

    I found this and it works args.datafield

    It will be the right thing?

    updaterow: function (rowid, rowdata, commit) {

    console.log(args.datafield);

    commit(true);
    },

    Name of the edited column #102703

    Martin
    Participant

    Hello nostromo,

    Yes, this is a correct way to get the datafield.

    Best Regards,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.