PDA

View Full Version : [CLOSED] Drag and drop with tablelayout



jchau
Jul 24, 2012, 2:25 PM
Do you have any examples of using drag and drop to reconfigure components in a tablelayout? For example, we have a form using tablelayout with 2 columns and 3 rows and textfield in each cell. We want to be able to drag and drop the fields around.

Daniil
Jul 24, 2012, 9:22 PM
Hi,

Unfortunately, we have no such example.

Generally, it should be possible.

Though if you would attach drag&drop directly to fields, when you, probably, will be in trouble with the field functionality. For example, no way to focus the field using mouse, because drag&drop intercepts mouse events.

<ext:TextField ID="TextField1" runat="server" Text="Hello" />
<ext:DD runat="server" Target="TextField1" />

A possible solution can be wrapping each field into a Container with some place to drag.

Hope this helps.