Properties "inlineEdit:true" in jqgrid?
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:"noab开发者_运维技巧jad.json",
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.
精彩评论