Reputation: 11
Using dojo's TreeGrid (v. 1.9.0) served by my local machine (mvc.net) the grid loads fine with my sample, hard-coded data. However, when served from a remote machine, I get the un-debuggable "Sorry, an error occurred".
Breakpoints within my formatters are not even hit, suggesting the problem does not lie with any unloaded dependencies within a formatter. This fails not only on initial startup, but also if at runtime I try to reload the model using .setModel(myNewModel) after everything has definitely loaded. I have the firebug flag set in the dojo config object, and no informative warnings or errors are showing up in firefox...just that annoying and useless message in the grid itself.
Upvotes: 1
Views: 90
Reputation: 8162
The Sorry, an error occurred message
is a result of a problem with your store and usually the data you are putting into the store.
The message is shown in DataGrid._onFetchError
and TreeGrid
mixes in the DataGrid
.
You can
Upvotes: 1