ExtJS4グリッドは、列ごとに適切なエディター(cellEditorまたはrowEditor)を予期します。 カラムのヘッダフィールドがdateFieldの場合、日付セレクタはそのカラムのすべてのローに適用されます。extjs4グリッド - 行単位で列エディターを変更する
私が必要とするのは、列ごとではなく、行ごとに異なるフィールドエディタを持つエディタです。
Extjs3ソリューションが提供されていますhere - 残念ながらExtjs4のケースには適合しません。 (説明を参照するにはリンクを確認してください。まだ画像を投稿できません)
property gridという単一の列解決策もありますが、もう1列しかサポートしておらず、標準のExtから大きく外れています。グリッドコンポーネント
column.fieldをカスタマイズしてgrid.editingPlugin.editorをリロードすることでグリッドエディタを手動で変更しようとしましたが、フィールドがない空のrowEditorパネルが表示されます。
//by default rowEditor applies textField to all cells - I'm trying to force custom numberFiled on apropriate row
var numberField=Ext.form.field.Number();
grid.columns[0].field=numberField;
//destroy current rowEditor's instance
delete grid.editingPlugin.editor;
//now, upon doubleClick on apropriate cell it should reinitialize itself (initEditor()) - and it does, but is an empty panel
私はここで何が欠けていますか?私はeditingPlugin.editorのすべてを削除すると呼ばれるような、初めてのrowEditor中に最初から始めるが、それはすべてのフィールド
、それを自分でやった: [リンク](http://www.sencha.com/forum/showthread.php?139440-changing-columnEditor-per -row-basis&p = 624107#post624107) – FlegmatoidZoid