Hi Dennis Gundersen,
There are at least two possible ways of implementing data validation.
The first approach is to implement the INotifyPropertyChanging and INotifyPropertyChanged interfaces and validate the values before the property is set.
Another approach is to provide custom validation logic inside the event handlers of the ITracking.Adding and ITracking.Changing events provided by OpenAccess:
- ITracking.Adding occurs before a persistent object is added to the object scope;
- ITracking.Changing occurs before a field of a persistent object is changed;
You can have a look at the following
article for details.
I hope the provided information will be helpful to you. If any other questions arise please contact us again.
Regards,
Damyan Bogoev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the
Telerik Public Issue Tracking system and vote to affect the priority of the items.