http://blogs.adobe.com/aharui/2007/04/more_thinking_about_item_rende.htm l <http://blogs.adobe.com/aharui/2007/04/more_thinking_about_item_rende.ht ml> has an example of checkboxes in a DataGrid. You can easily replace that with regular buttons or linkbuttons, and on the click event, use navigateToURL to open a new window
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of phdcpe01 Sent: Tuesday, April 17, 2007 4:48 PM To: [email protected] Subject: [flexcomponents] Datagrid with LinkButtons Hello all, I have a backend, written in PHP, that will obtain info from a database, and send it to my Flash datagrid in XML. This part works fine. The datagrid will display the information okay as well. What I'd like to do, however, is instead of one of the columns of cells displaying the result, it actually working like a link button would, and allow the user to click on it, with the result showing up in a new window. For example: Flash->Php: Give me data items: A, B,C Php->Flash (in XML format):A=123, B=456, C=789, ...(additional rows) Shown in Datagrid: "Values for A" "Values for B" "Click to see C's Value" 123 456 XXX (clickable link) When the user clicks on XXX, it sends a request to a third party site, which takes the 789 as an argument, and brings up info on 789 (i.e. www.thirdparty.com?x=789) Of course, all the rows for the C column in the datagrid would act similarly. Any suggestions on how I can do this?
