Experimenting with the DragAndDropManager
I have been experimenting with the DragAndDropManager control I have several drag/drop targets are dynamically created. I have a listbox that is part of each of these drag/drop targets. When I populate the targets the listboxes are populated as well with data. That data is draggable to other listboxes in the other targets. This works fine when the listboxes contain data. However to conserve space I set the Visibility to Collapsed when the listboxes have no data in them. Since the listboxes are hidden I can nolonger drop anything on them.
My first couple stabs at a solution
There are various ways I have tried to solve this problem albeit unsuccessfully. The first was to create the Parent control as a drop target and then use FindControl to find the list and add the payload to the list. I don't know why this didn't work. The other and more visually attractive way would be to start dragging the the object and when the mouse rolls over the parent the ListBox becomes visible and thus I am able to drop data on top of it to populate it.
Is the mouse event disabled while dragging?
If I can handle mouse events while dragging I can surely get this solved but it doesn't seem to work.
I have been experimenting with the DragAndDropManager control I have several drag/drop targets are dynamically created. I have a listbox that is part of each of these drag/drop targets. When I populate the targets the listboxes are populated as well with data. That data is draggable to other listboxes in the other targets. This works fine when the listboxes contain data. However to conserve space I set the Visibility to Collapsed when the listboxes have no data in them. Since the listboxes are hidden I can nolonger drop anything on them.
My first couple stabs at a solution
There are various ways I have tried to solve this problem albeit unsuccessfully. The first was to create the Parent control as a drop target and then use FindControl to find the list and add the payload to the list. I don't know why this didn't work. The other and more visually attractive way would be to start dragging the the object and when the mouse rolls over the parent the ListBox becomes visible and thus I am able to drop data on top of it to populate it.
Is the mouse event disabled while dragging?
If I can handle mouse events while dragging I can surely get this solved but it doesn't seem to work.