New to Kendo UI for jQuery? Download free 30-day trial

Get Old and New Values On Tab Key Press

Environment

Product Version 2019.3.917
Product Progress® Kendo UI® Grid for jQuery

Description

How can the user get the previous value, modified value, and row data when tabbing through a Kendo UI Grid with batch editing enabled?

Solution

To gain access to the previous value, currently changed value, and row data, utilize the save event's arguments. e.model will contain the previous values and row data, and e.values will hold the newly changed values.

      function onSave(e) {
         console.log(e.model); //contains previous values/row data
         console.log(e.values);  //contains newly changed values 
      }

See Also

In this article