Properties “inlineEdit:true” in jqgrid?

一个人想着一个人 提交于 2019-12-08 11:58:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!