2013-01-10 22 views
0

我有一個格式化的編輯按鈕編輯一行,我在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 
       }, 

當我點擊編輯按鈕定義它,我有行內聯版,但我需要顯示編輯表單。

我該怎麼做?

問候

回答

0

formatter: "actions"支持editformbutton: true選項,您可以使用。您只需將其作爲formatoptions的附加屬性加入即可。在formatoptions的情況下,您可以刪除keys:true,因爲該選項僅在內聯編輯的情況下使用。