PDA

View Full Version : Drag and Drop TreePanel to Grid



magdielsh
7 Nov 2011, 6:31 AM
I need a TreePanel agreed with a Grid with Drag and Drop, so that when you drag a node from the tree that it is a field in a table in the database to the grid is made a query and display the data in the grid, please if anyone has any idea how to do this answer me, thank you and sorry for my English.

plmdoctor
9 Nov 2011, 4:21 AM
In your TreePanel include


viewConfig: {
plugins: {
ddGroup: 'selDD',
ptype: 'treeviewdragdrop',
enableDrop: false
}
}

In you GridPanel include:


viewConfig: {
plugins: {
ptype: 'gridviewdragdrop',
ddGroup: 'selDD',
enableDrag: false
}
}