私はツリーパネルを持っています
var t = new Ext.TreePanel({
.
.
store: <loaded dynamically>
viewConfig: {
allowCopy: true,
copy: true,
plugins:{
ptype: 'treeviewdragdrop',
dragGroup: 'dragGroup',
dragText: 'Place the node to grid'
}
}
});
そしてグリッドパネルとして
var bpMappingGrid = Ext.create('Ext.grid.Panel',{
.
.
.
.
columns:[
{
header:'Application Name',
dataIndex:'applicationName', //The same name should be there in treenode too
align:'center',
width:150
},{
header:'Tagged BusinessProcess',
dataIndex:'businessProcessName', //The same name should be there in treenode too
align:'center',
width:180
}
],
store: <loaded dynamically>,
viewConfig: {
plugins:{
ptype: 'gridviewdragdrop',
dropGroup: 'dragGroup'
}
}
});
すべてのノードには関連付けられたbusinessProcessName
と がありapplicationName
ます。したがって、ノードをドラッグすると、これらのデータ インデックスの対応する値がグリッドに割り当てられます。
このコードは ExtJS 4.0 では問題なく動作しますが、ExtJS 4.1 ではグリッドに空の行が挿入されます。ExtJS 4.1 で動作させる方法を教えてください。