Validating RadDateTimePicker in User Control

2 posts, 0 answers
  1. Stefan Buys
    Stefan Buys avatar
    22 posts
    Member since:
    Dec 2009

    Posted 20 Apr 2011 Link to this post


    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?

  2. George
    George avatar
    1332 posts

    Posted 26 Apr 2011 Link to this post

    Hi Stefan,

    Please, refer to the Jeff Handley's post - I hope this will shed some light on the problem.

    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
Back to Top