Hey Matt, thanks. I went with the cell renderer route for now. :)

So once that's all done, now I need to loop through the datagrid and see how things are positioned. I've done a good job of locking up IE trying to XMLObject to inspect what I could possibly use. And spent a bunch of time on the API Ref, but can't figure it out.


<mx:DataGrid id="myDG">

How can I find out how many items are in myDG (I tried myDG.length, myDG.items.length, etc...)? On the API ref it doesn't list any method or property that wouldtell me that as far as I can tell.

And having that, how would Iloop over the content - mostly need the name of the property (the array?). myDG.items, mgDG._items, etc.. ?

Thx!


From: Matt Chotin <[EMAIL PROTECTED]>
Sent: Wednesday, February 23, 2005 8:49 PM
To: [email protected]
Subject: RE: [flexcoders] advice on drag n drop


Maybe you could use the cellPress event on DataGrid as some form of click indicator and then add double-click support.  If you get the double cellPress in your time period that’d be the indicator to pop your editor.

 

We have double-click on a button described in a technote: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19242.

 

Matt

 


From: Tarik Ahmed [mailto:[EMAIL PROTECTED]]
Sent: Wednesday,February 23, 2005 6:36 PM
To: [email protected]
Subject: [flexcoders] advice on drag n drop

 

Hey guys. So I got a data grid that I enabled drag and drop to easily allow users to position the items. And that works. However the previous functionality I had was that when you click on a row a pop-up happens that let's you edit the details. The problem now is that when you drag a row, the pop-up happens and it also does the dragging and dropping.

The first thing that comes to mind is to make a cell renderer that acts like an edit button, so you have to click on a specific column which has a button in it to edit an item.

But... what I'm wondering is if it's possible to only do the popup ( as a result of this: change="editQuestion(event.target.selectedItem)"), if no drag occured. Like a dragIncomplete=... kinda thing. I dunno. :)

Thx!





Reply via email to