I implemented the following function to update a row after a change:
change: function (event, x) {
var value = Data.areas[0].label;
$grid.pqGrid("updateRow", { 'rowIndx': 2, row: { 'Area': value } });
},
In the above situation I use the fixed rowIndx 2, but want to apply this function to the current row:
change: function (event, x) {
var value = Data.areas[0].label;
var current_row = ui.rowIndx;
$grid.pqGrid("updateRow", { 'rowIndx': current_row , row: { 'Area': value } });
},
It doesn't seems to work, even when console.log(ui.rowIndx); gives me the correct row number.