PDA

View Full Version : Basics about Drag&Drop for Ext.Container



silent
18 Nov 2011, 7:28 AM
Hi everyone,

I'm trying to create a Ext.Panel with drag&drop feature. For that, I created a Ext.Window which floats in front of my frontend. It renders without problems.

The Ext.Window contains one Ext.Panel configured with layout: border and in the region: north there are my Ext.Container's placed.

If I understand the documentation and some tutorials correct, then the only thing which I have to do is to place new Ext.dd.DragSource('the-dom-id-of-my-first-container-and-for-every-container-the-same') to just drag the container around.
So I added this to the afterrender listener of my Ext.Panel and passed the correct ID's of the corresponding DIV tags.

But all what firebug returns is just:



this.el is null
http://<...>/ext/3.4/ext-all-debug.js
Line 22864


What's wrong here?

Any help would be appreciated!

mitchellsimoens
18 Nov 2011, 1:59 PM
Try to do Ext.get('id') and see what it returns.