且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在"jQGrid操作"列中添加“编辑"和“删除"图标

更新时间:2023-11-24 14:41:34

您需要在列选项中添加该选项,例如

You need to add the option in the column options like

colModel: [{
    name: 'documentName',
    index: 'documentName',
    width: 200,
    editable: false,

    //add the following in one of the colModel config
    formatter: 'actions',
    formatoptions: {
        keys: true,
        editformbutton: true
    }
}

演示