Handling Server Side Validation Errors

3 posts, 0 answers
  1. Greg
    Greg avatar
    35 posts
    Member since:
    Sep 2013

    Posted 08 Jul 2014 Link to this post

    I have server side business logic validation that throws an exception when validation rules fail. How do I catch this on the client side?

    This is using a RadGridView with a QueryableDataServiceCollectionView data source in an MVVM application. I can see the error message formatted into XML inside the resulting clientside AggregateException, but this exception occurs inside a Telerik DLL and I don't see how/where to catch and handle it.

  2. Maya
    Maya avatar
    4062 posts

    Posted 10 Jul 2014 Link to this post

    Hello Greg,

    Generally, this depends entirely on your exact implementation and the validation mechanism you are working with. What you can try though is to handle CellValidating/CellValidated events of the grid or RowValidating/RowValidated and verify whether they would be appropriate for your scenario ?

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. Greg
    Greg avatar
    35 posts
    Member since:
    Sep 2013

    Posted 10 Jul 2014 in reply to Maya Link to this post

    My team is going to add the business logic project as a reference in the client solution so the rules can be accessed by the client without a trip to the server yet still we only code the business logic in one place.

    Consider this topic closed.
Back to Top