This content has been marked as final. Show 5 replies
I would expect the behavior you do. Maybe a bug? I think you are on the right track for a work-around. Look into the edit events, something like endEdit? I don't recall exactly.
Well, I figured out a work around to this problem.
I created a blank label called lblTemp. Then I entered the following code in a function that I created to handle the itemEditEnd event:
So far this is working for me. Seems a little odd to have to go this route. If anyone know of a more "proper" way of going about this, I'd love to see it.
Well, my solution works only if you're not using any other controls (as I just found out). Basically, this solution prevents the user from ever moving the focus out to any other control.
So far, my experience with the implementation of the Datagrid in Flex has been filled with frustration. There are a bunch of "common" scenarios that are proving very difficult to implement.
1) It would be nice to be able to have a calculated column that works. (I set up a labelfunction, but this doesn't update until I leave the row, rather than leave a cell, also it doesn't trigger when using the tab key...see #3).
2) It would be nice to be able to add a combobox to a datagrid column (I know Flex can do this, but not easily, or intuitively).
3) It would be nice to be able to control the tabbing behavior in the datagrid, it's doesn't work as one would expect it to. (I set focus to cell in code, then when I hit the tab key, it moves the tab out of the datagrid. When I click back into the datagrid and hit the tab key again...it works as I would expect. But, when I update data in a column and tab off it doesn't trigger the itemEditEnd event...and unfortunately there is no cell edit end event).
I could go on, but those are my Top 3 problems right now. If anyone has suggestions, ideas or solutions I would love to hear them.
See if there is anything in this example that will help with #1:
It may not be as easy as you wish, but did you get the comboBox item renderer working right?