I used jqgrid inline-edit feature in my project, when I was editing a row, I don’t want to save it later, it will restore the former data, I was wondering where jqgrid stored its former data, what method can I use to get its former data when I was editing a row?
Share
Yes, per the jqGrid documentation you can use the grid parameter
savedRow:As @Arnav wrote, you can easily access this
savedRowparameter usinggetGridParam:In case you are interested, internally there is an array
$t.p.savedRowthat the previous data is stored to. You can see this within therestoreRowfunction ingrid.inlineedit.js: