This content has been marked as final.
Show 1 reply
-
1. Re: How to capture the reconfigure event on ajax grid?
ion May 12, 2014 12:57 PM (in response to ion)I think i've solved it, it's interesting. Looks like ColdFusion.Grid.refresh('myGrid',true); starts executing asynchronously, the rest of the function keeps going and it can execute BEFORE the grid.refresh finishes.
I moved my triggered code to a different function and added a delay, like:
function myFunc(val) {
document.getElementById('myHiddenField').value=val;
ColdFusion.Grid.refresh('myGrid',true);
myVar = setInterval(myOtherFunc,1000);
}
function myOtherFunc() {
var grid = ColdFusion.Grid.getGridObject('myGrid');
// add whatever code you need
}
