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

Validating RadDateTimePicker in User Control

1 Answer 45 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Stefan Buys
Top achievements
Rank 2
Stefan Buys asked on 20 Apr 2011, 01:17 PM
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

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 26 Apr 2011, 02:20 PM
Hi Stefan,

Please, refer to the Jeff Handley's post - http://jeffhandley.com/archive/2010/10/12/EntityLevelValidation.aspx I hope this will shed some light on the problem.


Greetings,
George
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
Tags
DateTimePicker
Asked by
Stefan Buys
Top achievements
Rank 2
Answers by
George
Telerik team
Share this question
or