View Full Version : Extjs 4 drag-drop (grid as target panel) ?

24 Aug 2011, 2:00 AM
I am working on ExtJs 4 (Drag n Drop). I have successfully implemented this (http://dev.sencha.com/deploy/ext-4.0.2a/examples/dd/dnd_grid_to_grid.html) link. But is there any way to to get the control over the component before it is dropped to second grid?
I have followed the link here (http://dev.sencha.com/deploy/ext-4.0.2a/examples/dd/dnd_grid_to_formpanel.html) wherein the target panel is a form, and I am getting the control of the component before dropping to the form. How to implement the same for the first link where the target panel is a grid?
I tried comparing the both but get error like : Uncaught TypeError: Cannot read property 'dom' of undefined
Any suggestion?
Thanks in advance!

24 Aug 2011, 9:19 AM
You will have to post some code for someone to help you... that error is far to generic.

But have you looked at the "beforedrop" event?
- http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.plugin.DragDrop-event-beforedrop