Flex edit DataGrid cell on click only when previously selected
I need to modify the behaviour of an editable datagrid to this:
-Single-click on a row, doesn't make the cell show a text input field (only selects the row) -Double-click on a row, doesn't make the cell show a text input field either
but
-Clicking a cell in an already selected row, shows a text input 开发者_如何学Cfield ready to be edited.
I belive this is how for example iTunes works.
I found a solution. I ended up using the ListEvent.CHANGE to tell if the selectedIndex index had changed, and then the preventDefault on ITEM_EDIT_BEGINNING if it was.
精彩评论