how to stop this alert from grid?

when I click on a link to navigate away from page before grid has completed loading, I get an javascript alert with following:
Error type: LoadXML
Description: Incorrect XML

How do I suppress this alert from appearing ?

i use following to load grid
mygrid.loadXML("/xml/data/", function() { postRefresh(“post”); });

docs.dhtmlx.com/doku.php?id=dhtm … r_response