You just need to loop over the dataProvider and inspect the checkbox property. If true, then do your work.
If your itemRenderer is not updating a property in the dataProvider item, then that is your next goal. It is necessary. Tracy -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of phdcpe01 Sent: Thursday, August 02, 2007 6:05 PM To: [email protected] Subject: [flexcomponents] Getting Data from Item Renderer/Editor in Datagrids Hello, I've got a datagrid that I load XML data into. I've successfully added a checkbox in one of the columns. I've also successfully added a numeric stepper. What I'd like to do is have the application respond to these items. For example, I want to go through all the values in the datagrid, and for each one that has the checkbox selected, grab the corresponding data (XML object) and create an array. I'd also like to go through the list, and use the value of the numeric stepper to determine how many of each object to create: |-------|----------|---------|----------|----------------| |Data1 | Data2 | Data3 | Checkbox | NumericStepper | |-------|----------|---------|----------|----------------| |abc | xyz | pdq | false | 2 | |chu | wuh | prince | true | 3 | |foo | bar | royally | true | 77 | |-------|----------|---------|----------|----------------| So, it would grab the 2nd row (since it's true,) and create 3 of those objects (passing in chu, wuh, and prince), and grab the 3rd row, and create 77 of them. So, I need to grab the row that corresponds to the checkbox, plus grab the numericstepper value. Any help would be greatly appreciated. Yahoo! Groups Links
