Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to trigger datagrid's doLater()

Status
Not open for further replies.

fyicc

Programmer
Aug 27, 2007
2
US
I'm developing with Flash 8. I'm trying to figure out what conditions will trigger the datagrid to call doLater(). I am not dynamically creating a datagrid with "new" or createObject(). The datagrid is already placed on the stage and I'm simply adding columns and populating it with data through a data_set component.

Here's what I'm trying to accomplish. After I edit a value in a cell and hit enter (and leave the focus of that cell), I do not want the focus to be on the next cell or any other cell for that matter. In the cellFocusOut listener, I register a function to be called by doLater() to make the datagrid editable again. However, the doLater() is never executed, thus the datagrid remains uneditable. I have also tried adding and removing columns/rows to try and trigger the doLater() call but with no success. Could someone please explain to me when the datagrid calls doLater?
 
doLater() is called when a Component's properties, set through Property/Component Inspector, are set and become accessible. i.e. it's called only once at the beginning of the Component.

Kenneth Kawamoto
 
thanks kenneth. i've already found a workaround solution but was hoping for better news.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top