Welcome to the ASP.NET MVC feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET MVC, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Once I updated Syncfusion EJ2 MVC5 from 20.3.0.50 to 23.1460.36.0 my action failure javascript function has started to fail reading the response error message.

function scheduleError(args) {
    var err = (args.error[0].error.responseText.split("")[1]).split("")[0];
    alert(htmlDecode(err));
}

Console log:


schedule_functions.js:17 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'split')
at t.scheduleError (schedule_functions.js:17:49)
at e.notify (ej2.min.js?v=2.2.0:1:743430)
at e.trigger (ej2.min.js?v=2.2.0:1:773108)
at ej2.min.js?v=2.2.0:1:18410358

as the passed error object is now:

error: Error: Internal Server Error at http://localhost:52527/Scripts/ej2/ej2.min.js?v=2.2.0:1:763649    message: "Internal Server Error"    stack: "Error: Internal Server Error\n    at http://localhost:52527/Scripts/ej2/ej2.min.js?v=2.2.0:1:763649
On server side I simply throw different exceptions with custom messages when che CRUD operation fails (UrlAdaptor).
How can I achieve different client alert messages on different crud exceptions?

Thank you