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

Error icon while editing in cell validating event

3 Answers 100 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sankar
Top achievements
Rank 1
Sankar asked on 15 Aug 2013, 09:23 AM
Hi Support,

I was using some logical error validations and this will validate through the cell validating event. It seems that if there is a error in a cell the focus remains in that cell with the error icon. 

Here i need to show the error icon but allow the user to navigate to other cells.

How could i achieve this?

Thanks,
Sankar

3 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 15 Aug 2013, 02:02 PM
Hello Sankar,

In order to achieve your goal, you can try to set GridView's property - ValidatesOnDataErrors to "InViewMode". I can suggest you to check this help article for a reference.

I hope this helps.

Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Sankar
Top achievements
Rank 1
answered on 15 Aug 2013, 05:06 PM
Thanks Yoan,

ValidatesOnDataErrors seems to be work on for IDataErrorInfo and INotifyDataErrorInfo. My requirement is to validate through events and need to show the Error Icon also the allows the focus to others. 

How do i?
0
Yoan
Telerik team
answered on 16 Aug 2013, 09:18 AM
Hi Sankar,

You could use RowValidating event instead. In this way you will be able to edit any cell in the row and validate it when row edit is finished.

Please check this help article for a reference.

Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Sankar
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Sankar
Top achievements
Rank 1
Share this question
or