grp500
13 Dec 2010, 10:59 AM
Hi,
I have a grid based on my 'File' model and I'm trying to drag the rows into a tree based on my 'Folder' model. So the grid is set up and then:
new GridDragSource(_fileGrid);
is ran.
The tree is set up and then:
final TreePanelDropTarget target = new TreePanelDropTarget(_folderTree);
target.setAllowDropOnLeaf(true);
target.addDNDListener(some_listener);
is ran.
I don't want gxt to try and help me update the grid or tree or the associated models, they are different types and a casting exception is thrown. I just want to use a DNDListener to listen to the dragDrop event and use my own code to update everything. How can I turn off everything except for the event? I've tried target.setOperation(null); and it doesn't work.
Thank you for your time.
I have a grid based on my 'File' model and I'm trying to drag the rows into a tree based on my 'Folder' model. So the grid is set up and then:
new GridDragSource(_fileGrid);
is ran.
The tree is set up and then:
final TreePanelDropTarget target = new TreePanelDropTarget(_folderTree);
target.setAllowDropOnLeaf(true);
target.addDNDListener(some_listener);
is ran.
I don't want gxt to try and help me update the grid or tree or the associated models, they are different types and a casting exception is thrown. I just want to use a DNDListener to listen to the dragDrop event and use my own code to update everything. How can I turn off everything except for the event? I've tried target.setOperation(null); and it doesn't work.
Thank you for your time.