I need to find a way to determine when a datagrid has been updated by an executed databinding to a remoting connector result. There does not appear to be an event to signify when this happens. If I try to operate on the datagrid data when the remoting connector result is returned and the remoting connector "result" event is triggerd (the debugger say that the databinding to the datagrid has been invoked...) I still get the old data from the data grid. How do I determine when the datagrid databinding has been completed? There does not appear to be a datagrid event that covers this!
Please let me know if you know of a better way but I found a hokey solution to my own post.... delay the processing of the datagrid data by 500 milliseconds or so.... function wait1() { waitInterval = setInterval(authorityStatus,500); } function authorityStatus() { clearInterval(waitInterval); // clear the setInterval object so it does not keep repeating each 500 milliseconds //get the new datagrid information here..... } _root.application.common.itemList_rc.addEventListener("result",wait); //this event listener is for the remoting connector results function wait1() { waitInterval = setInterval(authorityStatus,500); } function authorityStatus() { clearInterval(waitInterval); // clear the setInterval object so it does not keep repeating each 500 milliseconds //get the new datagrid information here..... } _root.application.common.itemList_rc.addEventListener("result",wait); //this event listener is for the remoting connector results
forgot the listener object part of the code.. wait = new Object(); wait.result = wait1; function wait1() { waitInterval = setInterval(authorityStatus,500); } function authorityStatus() { clearInterval(waitInterval); // clear the setInterval object so it does not keep repeating each 500 milliseconds //get the new datagrid information here..... } _root.application.common.itemList_rc.addEventListener("result",wait); //this event listener is for the remoting connector results
Don't see what you're looking for? Try a search.
|