Hello,
I have tried to find a solution on the forum but couldn’t find one so I’m putting my question here.
If i send an addrow command to my dataprocessor i like to add a row to the grid and after adding this row I like to refresh the grid (with loadXML) showing the newly added row. However sometimes the loadXML is performed before the addrow has been finished and won’t show the new row in the grid allthough this has been created in the database. How do i prevent the loadXML being fired before the addrow has been finished? I was looking for a callback command but couldn’t find one. Please help me out. A snipped of the code you find below:
var x = getCookie("contact_id");
var id=mygrid.uid();
mygrid.addRow(id,'',0);
mygrid.clearAll();
mygrid.loadXML("data_email.php?id=" + x,function(){
ajaxLoading(false)
});
With best regards,
Kisuk
Developer