开发者

Properties "inlineEdit:true" in jqgrid?

开发者 https://www.devze.com 2023-03-26 07:48 出处:网络
There properties \"inlineEdit:true\" in jqgrid? for example code is : rowNum:10, rowList:[10,40,70], pager: \'#rowsTransaksi\',

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

精彩评论

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

关注公众号