问题
There properties "inlineEdit:true" in jqgrid? for example code is :
rowNum:10,
rowList:[10,40,70],
pager: '#rowsTransaksi',
sortname: 'depositType',
viewrecords: true,
sortorder: "desc",
caption:"Payee Accounts",
forceFit : true,
cellEdit: true,
***inlineEdit:true***
inlineEdit:true,
editurl:"noabjad.json",
回答1:
You can use for example the following onSelectRow event handler:
onSelectRow: function (rowid) {
if (rowid !== lastSel) {
myGrid.jqGrid('saveRow', lastSel);
lastSel = rowid;
}
myGrid.jqGrid('editRow', rowid, true, function(){
$("input, select", e.target).focus();
});
}
It implements the behavior which are very close to the cell editing, but the whole row will be set in the editing mode. See the modified version of the demo from your another question.
来源:https://stackoverflow.com/questions/6939642/properties-inlineedittrue-in-jqgrid