2013-06-26 35 views

回答

2

您不需要使用兩個..只需使用xtype格網列... 例如;

{ 
header:'textfield column', 
editor:{ 
xtype:'textfield', 
allowBlank:false 
} 
}, 
{ 
header:'combo column', 
editor:{ 
xtype:'combo', 
} 
} 

而且ofcourse你需要聲明在網格配置,如插件...

plugins: [ 
      Ext.create('Ext.grid.plugin.RowEditing', { 
      clicksToEdit: 2 
      }) 
     ] 
+0

感謝您的答案,但我不想這個我想同一列下的多個編輯控件。 –

1

你需要重寫getEditor功能在你的Ext.grid.plugin.CellEditing插件允許使用不同的編輯器根據記錄中的數據。看這個帖子的答案,它有一個很好的例子,如何做到這一點:ExtJS 4, Different rows fields

相關問題