Groups | Blog | Home
all groups > flash data integration > july 2005 >

flash data integration : Determining When Datagrid databinding is Complete



roadWorkAhead
7/21/2005 8:30:17 PM
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!
roadWorkAhead
7/21/2005 9:22:35 PM
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
roadWorkAhead
7/21/2005 9:25:33 PM
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
AddThis Social Bookmark Button