PDA

View Full Version : treenode move up/down in button click



sreenatht
30 Apr 2012, 1:20 AM
hi is it possible to move the treepanel node up and down in a buttton click? instead of using the below script which is using to move the node by dragging it.

viewConfig: {
plugins: {
ptype: 'treeviewdragdrop'
}
}

scottmartin
30 Apr 2012, 1:54 PM
Have a look at Ext.tree.Panel.move(from,to)

Regards,
Scott.