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

Validate cells in a column when a cell is updated

1 Answer 90 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Raghavendar
Top achievements
Rank 1
Raghavendar asked on 18 Feb 2018, 07:36 AM

Hello,

I have 3 columns in my grid and need data validations in the first column.

I'm currently trying to achieve this through IDataErrorInfo.

I'm trying to trigger validation for all cells in the column when any one of the cells is updated or any row is added/deleted.

So far i could not see any generic method to make this work.

From this https://www.telerik.com/forums/trigger-grid-view-validation there is no way to do this?

Any help is appreciated.

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 21 Feb 2018, 08:27 AM
Hi Raghavendar,

IDataErrorInfo is a good way to go. Please find attached a modification of our ValidationIDataErrorInfo SDK sample. I added two buttons to it - first one adds new football club with stadium capacity < 50000 and its row is immediately validated (actually model is validated). Second button updates the capacity of the Liverpool club and it's row is re-validated too. 
Do you need to validate rows in which no change has happened ? If yes, could you please elaborate a bit more on the exact requirements ? 

Regards,
Petar Mladenov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Raghavendar
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or