Posted 18 Oct 2012
Link to this post
Basically, I've seen that datasource's schema configurations support an "errors" field, and the datasource has an error event. I want to be able to pass back errors from my MVC controller, and have them be reported using the same error handler on the client side.
What do I need to do to get this to work? Specifically, what format does my returned errors have to be for the datasource to recognize it as errors and fire the event? Is there anything else I need to set on the datasource besides "schema.errors" and the error event handler? Currently I am just returning an object with a field "errors" that contains and array of strings, but that doesn't seem to trigger it. What am I doing wrong?