Hi David Mariacher,
I am attaching a sample project illustrating how INotifyDataErorInfo Interface should be implemented correctly. Please take a look at it and follow the suggested approach.
Nevertheless, based on the sample you sent, I would recommend a couple of things. Firstly, you need to add INotifyDataErrorInfo Interface in the implementation of your business object:
public class ClientCategory : Category, INotifyPropertyChanged,
Furthermore, once you create a collection and you check whether it is null or not will always return false. So, as it is here:
<string, string>> errors = new ObservableCollection<
<string, string>> GetErrorsSafe()
if (errors == null)
errors = new ObservableCollection<
errors.CollectionChanged += errors_CollectionChanged;
You will never be subscribed to the CollectionChanged event.
On other hand why do you add errors in the code-behind? You can try implementing the whole validation logic directly in your business object. What is the exact scenario that you want to accomplish ?
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>