PDA

View Full Version : Drag and Drop from Grid to Tree issue



daeo
15 Feb 2009, 1:31 AM
Thanks to jpnet for posting an example of "grid to tree drag n drop" in this thread: http://extjs.com/forum/showthread.php?t=58364&highlight=drag+drop

This is exactly what i want to achieve, but i m having an issue, the grid item can't be dragged to anywhere, when i drag it, it displays a 'red stop' symbol at the top of the Grid(right over the first column name), and in Firebug, an exception message shows up when a drag event is performed. It says "a is null", i don't know what this means.

i m wondering if it's because the tree has no nodes in it? Someone can help me? Thanks!


Best Regards

daeo
15 Feb 2009, 2:31 AM
sorry, it works when i put it straight in to the onModuleLoad method of the Entry Point class. But if i put the code in another class which extends LayoutContainer, and add this panel to the Entry Point, it failed. Is there a walkaround to achieve this?

Thanks!