Hey all, hopefully this isn’t too obvious a question, but I’ve been wondering…
In Flex I’ve built a DataGrid, inside which is contained a few options. You select an item, and several fields in the application display associated information. ( The application in question is a discography for a band. ),
However, there are buttons in the application that i’ve designed to link off to HTML pages containing lyrics/artwork. This works successfully, however… the buttons run on {datagrid.SelectedItem…} etc. Thus, if the user clicks the button before an item is selected Flash generates an IOerror. ( not that the user in all cases can see this. ) ( the grid loads the URL for the associated lyrics/art from XML. )
Is there a way to set Flex to automatically select the first list item?