Hi,
I have a reusable user control that contains a RadDateTimePicker. The user control has a DateTime Dependency Property registered and the RadDateTimePicker is bound to it. The user control is dropped onto a View and the exposed Dependency Property is typically bound to a RIA Entity's DateTime property via a ViewModel. The RIA Entity's DateTime property has some validation attributes attached to it.
If I bind to a RadDateTimePicker direclty in my View, the validation behaves correctly where it displays errors and removes errors when the RIA Entity property is changed. What is the preferred way to "propogate" and "clear" RIA entity attribute errors to and from the RadDateTimePicker contained with the user control?
Thanks,
Stefan
I have a reusable user control that contains a RadDateTimePicker. The user control has a DateTime Dependency Property registered and the RadDateTimePicker is bound to it. The user control is dropped onto a View and the exposed Dependency Property is typically bound to a RIA Entity's DateTime property via a ViewModel. The RIA Entity's DateTime property has some validation attributes attached to it.
If I bind to a RadDateTimePicker direclty in my View, the validation behaves correctly where it displays errors and removes errors when the RIA Entity property is changed. What is the preferred way to "propogate" and "clear" RIA entity attribute errors to and from the RadDateTimePicker contained with the user control?
Thanks,
Stefan