开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜