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

Support for Warning in RadGridView/Overrid Validation Result

1 Answer 83 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Philipp
Top achievements
Rank 1
Philipp asked on 20 Feb 2012, 11:12 PM
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

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 23 Feb 2012, 03:20 PM
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 >>
Tags
GridView
Asked by
Philipp
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or