开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜