Sorry, perhaps my question was a bit malformed:
my code is something like:
function one() {
....
$(dg).datagrid('load',data1);
return;
}
function two() {
....
$(dg).datagrid('load',data2);
/* something to do AFTER load success */
....
}
function three() {
....
$(dg).datagrid('load',data3);
return;
}
I want to be able to call onLoadSuccess(), but only on function two(). Due to async nature of ajax call in 'load', I cannot simply add required code bellow
So I'm looking for:
- A way to enable/disable onLoadSuccess at an specific point, without affecting others
Or
- Add a sort of method like datagrid('load').done()
Juan Antonio