ツリーグリッドのグリッド列の値を編集する機能が必要です。列の構成にエディターを追加するだけでは役に立ちませんでした。ExtJs4 ツリーパネル コンポーネントを使用しています。
何か案は?
うん、存在する。
現時点では 4.1 Release Candidate 1 である最新バージョンを使用することをお勧めします。
Ext.Tree.Panel を使用する
次のように、Grid Editing プラグインを追加します。
plugins:[
Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit:2
})
]
このように、列の少なくとも 1 つを編集可能にします
editor:{
xtype:'textfield'
}
あなたは基本的にこれを組み合わせています:
http://docs.sencha.com/ext-js/4-0/#!/example/tree/treegrid.html
この:
http://docs.sencha.com/ext-js/4-0/#!/example/grid/cell-editing.html
解決策を見つけました:
http://www.sencha.com/forum/showthread.php?131602-4.0.0-Cellediting-on-TreeGrid http://www.sencha.com/forum/showthread.php?143983-Problems-Trying-To -編集-ツリー-パネル-ExtJS-4