Adobe Dreamweaver Forums



Last 10 THreads :         Embedding Flash SWF Skin in External Site (Last Post : QADesign - Replies : 0 - Views : 1 )           »          Compatible issue with ie6 (Last Post : zhtjlong - Replies : 0 - Views : 1 )           »          Re: Photoshop CS4 is a disaster (Last Post : Paulo_Skylar@adobeforums.com - Replies : 0 - Views : 1 )           »          Query question/help (Last Post : trojnfn - Replies : 2 - Views : 3 )           »          CS4 Motion Editor issues (Last Post : aaronlyon - Replies : 4 - Views : 9 )           »          Bridge No Longer Rotates Automatically (Last Post : Michael_Palumbo@adobeforums.com - Replies : 1 - Views : 2 )           »          dollarFormat / numberformat problem (Last Post : izdabye - Replies : 0 - Views : 1 )           »          Call out side flex (Last Post : Amy Blankenship - Replies : 15 - Views : 16 )           »          captions for photos (Last Post : dc111652 - Replies : 0 - Views : 1 )           »          Re: CS4 GPU Acceleration and Intel X3100 (Last Post : Paul_B_Brown@adobeforums.com - Replies : 0 - Views : 1 )           »         


User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-02-2008, 01:32 AM
srtr4k
 
Posts: n/a
Diggs:
Default Advanced Data Grid - Drag and Drop

I have an Advance Datagrid that is populated by an arraycollection. Although it
is not shown below, each object within the arraycollection has an individual id
attribute "GroupID". When I drag the

private function dragHandler(eragEvent):void{
var dg:AdvancedDataGrid = AdvancedDataGrid(e.currentTarget);
Alert.show(gc.grouping.fields);
Alert.show(dg.selectedItem.GroupID);

<mx:AdvancedDataGrid id="adg" width="100%" height="100%" y="30"
dragEnabled="true" dropEnabled="true" dragMoveEnabled="true">
<mx:dataProvider>
<mx:GroupingCollection id="gc" source="{arrItems}">
<mx:Grouping>
<mx:GroupingField name="Group"/>

</mx:Grouping>
</mx:GroupingCollection>
</mx:dataProvider>
<mx:columns>
<mx:AdvancedDataGridColumn dataField="Group" width="75"/>

<mx:AdvancedDataGridColumn dataField="Program" width="75"/>
<mx:AdvancedDataGridColumn dataField="Created_By" width="75"/>

<mx:AdvancedDataGridColumn dataField="Date_Created" width="130"/>


</mx:columns>
</mx:AdvancedDataGrid>



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-02-2008, 01:32 AM
ntsiii
 
Posts: n/a
Diggs:
Default Re: Advanced Data Grid - Drag and Drop

I haven't worked with ADG and reag/drop, but with regular DG:

var iTargetIndex:int = dg.calculateDropIndex(e);

With the index you can find the item in the dataProvider.

Tracy
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 03:56 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk