ValidationSummary not displaying validation errors

4 posts, 0 answers
  1. Adam
    Adam avatar
    70 posts
    Member since:
    Jun 2008

    Posted 30 Jan 2013 Link to this post


    Hi there,

    I've seen a couple of forum posts asking this question but do not see any actual resolutions.  When binding to a collection of objects that implement the INotifyDataErrorInfo interface, we do see proper invalid row notifications and the correct tooltip for the validation error message.  However, no matter what combination of properties I set on the grid, the columns, or the bindings themselves, I can never seem to get a ValidationSummary to display the same messages.  We do not see a problem when validating a form with controls like the RadComboBox.  We do our validation all at once on the objects themselves and manually raise the errors that are found.  Is there a proper combination of settings to have to support this scenario?  It simply looks like the RadGridView is eating up the errors and not sending them out to the container.

    Thanks!

    Adam.g
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 01 Feb 2013 Link to this post

    Hello Adam,

    You can check this online example demonstrating how the ValidationSummary works with the RadGridView.

    Regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Adam
    Adam avatar
    70 posts
    Member since:
    Jun 2008

    Posted 12 Feb 2013 Link to this post


    I must admit, the initial issue I was having here was a silly mistake of not laying out the page such that the ValidationSummary was visible. :)

    However, the issue still stands of properly having the RadGridView work with the ValidationSummary.  The issue lies, I think, in the notification of the cells and their edit elements.  For our setup, we currently have the grid set to ValidatesOnDataErrors="InViewMode".  When this is set, and we do our validation pass on the ViewModel, the erroneous fields and their corresponding cells correctly display in the ValidationSummary.  However, upon editing one of the erroneous cells, an additional message shows up in the ValidationSummary, and upon leaving the field, another messages shows up, ad infinitum.  The normal Silverlight controls, such as the ComboBox or masked input controls, do not do this.  It seems as though each cell operation notifies.

    Is this the expected behavior?  I have exhausted many of my options so far that I can think of and have not been able to configure or hack my way around this behavior so any assistance would be appreciated.

    Thanks!
    Adam.g
  4. Yoan
    Admin
    Yoan avatar
    1214 posts

    Posted 15 Feb 2013 Link to this post

    Hello Adam,

    I have tested your scenario (using the binaries from our Q3 2012 SP1) but I could not reproduce the issue. For your convenience, I have attached the sample project. Would it be possible to modify it in order to reproduce the problem and resend it back to me ?

    Thank you in advance!

    Greetings,
    Yoan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top