0

I have a formatter edit button to edit a row, I defined it in 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
                },

When I click on edit button, I have inline edition on the row, but I need to show the edit form.

How I can do it?

Regards

4

1 回答 1

0

formatter: "actions"支持editformbutton: true您可以使用的选项。您只需将其作为formatoptions. keys:true您可以在 case from中删除,formatoptions因为该选项仅在内联编辑的情况下使用。

于 2013-01-10T10:55:13.767 回答