when you set dragMoveEnabled="true", that'll let you move, but also allows
to copy. i wanted to disable the copy.
for all interested, there is a solution in the draft of the programming flex
2 book (i was stunned when i came across it, it was exactly what i needed!).
Here is a solution for anybody interested (all it does is cancels the event
if non-move):
private function onDragComplete(event:DragEvent):void
{
if (event.action != DragManager.MOVE) {
var grid:DataGrid = DataGrid(event.dragInitiator);
grid.hideDropFeedback(event);
event.preventDefault();
}
}
On 2/28/07, Brian Holmes <[EMAIL PROTECTED]> wrote:
Whoops,
I meant dragMoveEnabled="true". By default it's false which means it gets
copied. Setting it to true means it will move the items. It's what I meant
in my other email.
brian..
------------------------------
*From:* [email protected] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Andrey
*Sent:* Tuesday, February 27, 2007 12:12 PM
*To:* [email protected]
*Subject:* Re: [flexcoders] disabling COPY in drag/drop operations
what i'm trying to do is exactly the opposite. I'm trying to reorder the
list by drag/drop, so i want to make it so you can ONLY move, and can not
copy. "dragCopyEnabled" i guess would be the ultimate answer :) is there
something out there or some technique that could do that?
i wanted to try the other email's approach, but there is really no
dragStart on datagrid, and canceling the drop didn't help for some reason
either... so we're stumped :(
On 2/27/07, Brian Holmes <[EMAIL PROTECTED]> wrote:
>
> set the dragMoveEnabled="false" on your datagrid
>
>
>
> a+
> brian..
>
>
> ------------------------------
> ***
> The information in this e-mail is confidential and intended solely for
> the individual or entity to whom it is addressed. If you have received this
> e-mail in error please notify the sender by return e-mail delete this e-mail
> and refrain from any disclosure or action based on the information.
> ***
>
>
------------------------------
***
The information in this e-mail is confidential and intended solely for the
individual or entity to whom it is addressed. If you have received this
e-mail in error please notify the sender by return e-mail delete this e-mail
and refrain from any disclosure or action based on the information.
***