I think it's a stupid question but I can not find a solution. I created a table with jqGrid and I enabled inline editing On each line I added a button that enables or disables editing I wanted to add a second button active only during editing that would allow you to load the default values ββin the various fields of active inline edit row. I do not know how to access and change data row while editing setRowData work well if row i selected but not in inline edit mode Anyone have any suggestions, thanks.
Update I have found a (bad I think) solution but explain my problem:
if (edit_enabled) {
// save current data
jQuery('#SEQtbl').jqGrid('saveRow',row_edit, false, 'clientArray');
// read back row data
var row = jQuery("#SEQtbl").jqGrid('getRowData',row_edit);
// change something
....
.....
// save data
jQuery("#SEQtbl").jqGrid('setRowData',row_edit, row);
// reneter row edit mode
jQuery('#SEQtbl').jqGrid('editRow', row_edit,true);
}
`