显示编辑表单而不是内联版本

时间:2013-01-10 10:26:26

标签: jquery jqgrid

我有一个格式化程序编辑按钮来编辑一行,我在conModel

中定义了它
colModel:[ 
        {name:'HOSTID', index:'HOSTID', width:120, editable: true, editoptions:{size:"15", maxlength:"10"}}, 
        {name:'NAME', index:'NAME', width:250}, 
        {name:'DOCUMENT', index:'DOCUMENT', width:75, editable: true, editoptions:{size:"15", maxlength:"15"}},
        {name:'IDMUREX', index:'IDMUREX', width:80, editable: true, editoptions:{size:"15", maxlength:"4"}},
        {name:'TYPE', index:'TYPE', width:60, formatter: 'select',
            edittype: 'select', align: 'center', editable: true, 
            editoptions: {value: 'T:<bean:message bundle="mantenimiento" key="titularidad.titularalto"/>;C:<bean:message bundle="mantenimiento" key="titularidad.cotitularalto"/>', defaultValue: ''}},
        {name: 'ACTIONS', width:50, fixed:true, sortable:false, search:false, resize:false, formatter:'actions', 
            formatoptions:{
                keys:true,
                editOptions: {
                    modal: true,
                    width: 'auto',
                    closeAfterEdit: true,
                    closeOnEscape: true,
                    recreateForm: true
                },

当我点击编辑按钮时,我在该行上有内联版本,但我需要显示编辑表单。

我怎么做?

此致

1 个答案:

答案 0 :(得分:0)

formatter: "actions"支持您可以使用的editformbutton: true选项。您只需将其包含为formatoptions的附加属性即可。您可以从keys:true中删除案例中的formatoptions,因为该选项仅在内联编辑时使用。

相关问题