From:[EMAIL PROTECTED]
Sent: Thursday, February 24, 2005 4:30 PM
To: [email protected]
Subject: RE: [flexcoders] Looping through content of a DG
Hi Tarik,
Try: myDg.dataProvider.length
-Art
Quoting Tarik Ahmed <[EMAIL PROTECTED]>:
> 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.
>
>
>
> Howcan 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 would tell me that as far as I can tell.
>
> And having that, how would I loop 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 DataGridas 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
>
> Heyguys. 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 buttonin 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!
>
> Yahoo! Groups Sponsor
>
> ADVERTISEMENT
>
> ----------------------------------------
> Yahoo! Groups Links
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups issubject to:
http://docs.yahoo.com/info/terms/

