Flex DataGrid and CheckBoxes
Hi,
Fairly new to Flex and still learning but here is my issue:
Lets pretend I have an online purchasing website. A user searches for a product they wish to purchase and 20 items are returned. In the CF and HTML days I would output the list of the items with a checkbox next to each row and a FORM submit button at the bottom. The user selects which items they want and press the submit button. I would have given the value of the checkboxes the ID of the product they've checked so after form submission I'd have CF insert into a DB the IDs they selected. I do not want to save anything to a DB until the user has checked the items they want and then press submit. How on earth do I do this in Flex with Datagrids and checkboxes?
I've tried a few examples out there using ItemRenderors but they all want me to Bind to a DB and I don't need to do that here, I just need to create a checkbox for every row and know which IDs the user has selected after they press a Flex button. There does not seem to be an onclick event for checkboxes using this:
<mx:DataGridColumn dataField="selected" sortable="false"
itemRenderer="
mx.controls.CheckBox" id="customCheck"
rendererIsEditor="
true"
editorDataField="
selected"
headerText="" width="
25"
/>
Thanks
