Ute
16 Apr 2012, 11:50 PM
My problem concerns dragging & dropping nodes of a tree view panel.
I want to implement an ajax call after a user has drag and drop the node of a tree view.
Which events fire during drag and drop or are there a functions for overriding? How they are defined?Sorry, I'm new in EXT JS.This is our Tree Panel definition:
treePanel = Ext.create('Ext.tree.Panel', {
renderTo: 'our-tree',
height:600,
columns: [{
xtype: 'treecolumn',
text: 'Name',
dataIndex: 'text',
width: 300
},{
text: 'Description',
dataIndex: 'desc',
width: 500
}],
listeners: {
checkchange: function(node, checked, options) {
if(checked) var ajaxRequest = ...
}, ..
viewConfig: {
plugins: {
ptype: 'treeviewdragdrop'
}
}, ...
}
I want to implement an ajax call after a user has drag and drop the node of a tree view.
Which events fire during drag and drop or are there a functions for overriding? How they are defined?Sorry, I'm new in EXT JS.This is our Tree Panel definition:
treePanel = Ext.create('Ext.tree.Panel', {
renderTo: 'our-tree',
height:600,
columns: [{
xtype: 'treecolumn',
text: 'Name',
dataIndex: 'text',
width: 300
},{
text: 'Description',
dataIndex: 'desc',
width: 500
}],
listeners: {
checkchange: function(node, checked, options) {
if(checked) var ajaxRequest = ...
}, ..
viewConfig: {
plugins: {
ptype: 'treeviewdragdrop'
}
}, ...
}