I posted my solution for seeing which checkboxes are selected and how to preselect them on the Adobe Flex 2 forum. You can take the logic in that code and modify it to fit your needs I am sure. Only downside is the post took three posts to get all of the code uploaded. You can do a search in the Adobe Flex 2 forum for "checkbox example" or just follow this link.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm? forumid=60&catid=585&threadid=1190918&highlight_key=y Have an Ordinary Day... KomputerMan ~|:-) --- In flexcoders@yahoogroups.com, "Tommy Mestdagh" <[EMAIL PROTECTED]> wrote: > > > I also need to be able to check which CheckBoxs are selected > > This is wath you are looking for. I have a grid with a column named > "deleted" . By clicking the checkbox you mark the item to delete > (webmail style) > This method pushes all marked items from the grid into a new array > todelete. > all items in the array todelete will be deleted later on. > > Good luck . > Tommy > > > > > private function collectForDelete():Array{ > var todelete:Array = new Array(); > var obj:Object = new Object(); > > for (var i:Number =0 ; i < table_grids.datagrid.dataProvider.length ; > i ++){ > obj = table_grids.datagrid.dataProvider[i]; > if (obj.deleted) { > var record:RecordDTO = new RecordDTO(); > record.setColumns(obj); > todelete.push( record ); > } > } > return todelete; > } > > > ________________________________ > > Van: flexcoders@yahoogroups.com > [mailto:[EMAIL PROTECTED] Namens Chad Callahan > Verzonden: dinsdag 17 oktober 2006 16:52 > Aan: flexcoders@yahoogroups.com > Onderwerp: [flexcoders] DataGrid CheckBox itemRenderer select > all > > > > I have a DataGrid and the first column's item renderer is > mx.controls.CheckBox. I would like to be able to have a select all > button that sets all of the CheckBox selected = true. I also need to be > able to check which CheckBoxs are selected. Any suggestions? > > > > > > > > CHAD CALLAHAN > PROGRAMMER > > T8DESIGN.COM | P 319.266.7574 - x195 | 877.T8IDEAS | F 888.290.4675 > > > This e-mail, including attachments, is covered by the Electronic > Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and > may be legally privileged. If you are not the intended recipient, you > are hereby notified that any retention, dissemination, distribution, or > copying of this communication is strictly prohibited. Please reply to > the sender that you have received the message in error, and then please > delete it. Thank you. > > > ________________________________ > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/