Support for Warning in RadGridView/Overrid Validation Result

2 posts, 0 answers
  1. Philipp
    Philipp avatar
    3 posts
    Member since:
    Aug 2011

    Posted 20 Feb 2012 Link to this post

    Hi,

    bound to a GridView we're using objects that implement INotifyDataErrorInfo for validation. We return custom ErrorInfo objects the supports different severities.
    I understand that we have to provide custom styles to support the display of warnings in cell editors.

    The tricky part:
    An editor should not block the UI when only a warning is displayed. I tried to handle the CellValidated event. The Cell.IsValid property of GridViewCellValidatedEventArgs is already true.
    I tried to clear the ValidationResult -> nothing helped
    My question:
    How can I override the ValdidationResult provided by INotifydataErrorInfo in a way that certain errors are ignored?
    
    Thanks,
    Philipp
  2. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 23 Feb 2012 Link to this post

    Hi,

    You can set RadGridView/GridViewDataColumn.ValidatesOnDataErrors property to "InViewMode" this will skip data validation on commit edit and editing process will be able to continue. Another option is to user UI validation (via (Row/Cell)ValidatING events).

    In order to get the proper level of support please use only your official account for any support (community) communications.

    Regards,
    Nedyalko Nikolov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top