How can I get a return value when the grid.loadXML() is exec

I want to get a return value from grid.loadXML()

I want to judge by using the return value.

many thanks in advance…

the grid.loadXML is async operation, so it can’t return result value ( when command executed, operation still not finished ), but you can use second parameter to catch the loading moment

alert(“data was correctly loaded”);