This is a migrated thread and some comments may be shown as answers.

MVC + KendoUI server-side datasource error reporting

0 Answers 51 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 18 Oct 2012, 05:54 PM
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?

Thanks.

No answers yet. Maybe you can help?

Tags
Data Source
Asked by
Joshua
Top achievements
Rank 1
Share this question
or