Preventing Dojo data.store state

I am using dojo.data.ItemFileReadStore to get data from json source to dojox.grid.DataGrid. I am replacing the store with DataGrid.setStore (), which works great except when I try to do it before the old store file finishes loading, which will instead cause the DataGrid to crash and be unrecoverable. How can I prevent this race condition?

+2


source to share





All Articles