[flexcoders] Drag and Drop (modify default dragProxy)

2008-05-12 Thread nwebb
Hi, I'm drag/dropping items within a DataGrid. I would like to modify the default dragProxy label that is shown when you drag an item. (i.e. my DataGrid may have 4 columns, but I only want to show text from the last two columns). Does anyone know how to access it?

Re: [flexcoders] Drag and Drop (modify default dragProxy)

2008-05-12 Thread Douglas Knudsen
perhaps you can create a Label with the text from these twocolumns and then use this method http://livedocs.adobe.com/flex/3/html/dragdrop_7.html#226768 DK On Mon, May 12, 2008 at 8:40 AM, nwebb <[EMAIL PROTECTED]> wrote: > Hi, > > I'm drag/dropping items within a DataGrid. I would like to mod

Re: [flexcoders] Drag and Drop (modify default dragProxy)

2008-05-12 Thread nwebb
Hi Douglas, thanks for the reply - yeah that's pretty much what I have at the moment (I capture the data on MouseDown and create/display a Label on MouseMove), but I thought it could be a little cleaner and so I was hoping I could access the current dragProxy, use the existing data within it, all

Re: [flexcoders] Drag and Drop (modify default dragProxy)

2008-05-12 Thread Daniel Gold
I think if you wanted to modify the default drag proxy you could subclass DataGrid and override the get dragImage function, which looks like this (in Flex 2.01) override protected function get dragImage():IUIComponent { var image:DataGridDragProxy = new DataGridDragProxy();

RE: [flexcoders] Drag and Drop (modify default dragProxy)

2008-05-12 Thread Alex Harui
dragImage. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nwebb Sent: Monday, May 12, 2008 7:04 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drag and Drop (modify default dragProxy) Hi Douglas, thanks for the reply - yeah that's pre

Re: [flexcoders] Drag and Drop (modify default dragProxy)

2008-05-13 Thread nwebb
dragImage. > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *nwebb > *Sent:* Monday, May 12, 2008 7:04 AM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Drag and Drop (modify default dra

Re: [flexcoders] Drag and Drop (modify default dragProxy)

2008-05-13 Thread nwebb
Thanks Daniel, trying that now I seem to be having some problems getting anything to show up in my DataGridDragProxy subclass but I'm sure I'll work out the issue soon enough. Much appreciated. On Mon, May 12, 2008 at 3:37 PM, Daniel Gold <[EMAIL PROTECTED]> wrote: > I think if you wanted to