jQWidgets Forums

jQuery UI Widgets Forums General Discussions JQXGrid get old values for multiple celss

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 6 years, 4 months ago.

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

  • ragavsrini
    Participant

    I am trying to get args.oldvalue as depicted below for my new value and old value comparison. but while I am pasting the value from excel that time it gives null instead of args.oldvalue.

    $(“#jqxgrid”).on(‘cellendedit’, function (event) {
    var args = event.args;
    var columnDataField = args.datafield;
    var rowIndex = args.rowindex;
    var cellValue = args.value;
    var oldValue = args.oldvalue;

    if(cellValue != oldValue ) {
    // doing something here
    // doing something here

    }
    });


    Hristo
    Participant

    Hello ragavsrini,

    This event is created to fired in edit mode.
    If you just select the cell and paste new value then it will not recognize the old value.
    You could bind to cellclick event and to get current value from there.
    Please, take a look at this example.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.