> I am working on a new flex application which on my stage is 2
> DataGrids separated by 2 buttons. One of hte buttons has an
> arrow pointing to the right and the other button has an arrow
> pointing to the left. The datagrid on the left hand side is
> populated via a Coldfusion CFC that lists all of the Business
> within a 25 mile radius of a specific zipcode.
>
> Now when I click on one of these businesses and click t he
> button with the arrow pointing to the right, I am able to
> display the Business in the Right datagrid with the following
> bit of code.
>
> private function updateSchoolCorpNotify():ArrayCollection {
> ~ var arr:Array = [];
> ~
> arr.push({Name:AvailableSchoolCorporations.selectedItem.Name,I
> D:AvailableSchoolCorporations.selectedItem.ID});
> ~ return new ArrayCollection(arr);
> }
Create two ArrayCollection objects. On the event that moves records from one
datagrid to the other, find the selected item in the left grid, then use
addItem to create a corresponding item in the second - your function should
not return an ArrayCollection or anything at all, really.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/
WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:5063
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37