Overriding native input parsing

2 posts, 0 answers
  1. Mike Gardner
    Mike Gardner avatar
    2 posts
    Member since:
    Oct 2008

    Posted 20 Jul 2011 Link to this post

    My company is using RadControls for WPF Q1 2010 SP2. I am extending the RadDatePicker control to add certain behaviors that are used by our FSP suite of programs. We are using Visual Studio 2008 and C#.

    When an invalid date is typed into the input box of a RadDatePicker (for example, 13/35/2011), its native behavior is to clear the field. I need to override this behavior to keep (not clear) the invalid input and set an error message property in our extended control. Is this possible and if so, how do I do that? I am not very experienced at how to code event handlers so if you could provide the code for how to hook the event and the skeleton of the new event handler, I would appreciate it.

    Would this technique work for the RadTimePicker as well? I need to do the same thing to it.

  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 25 Jul 2011 Link to this post

    Hi Mike,

    I am sorry, but the RadDatePicker does not support custom parsing in this version. In Q2 2010 we introduced a new control - RadDateTimePicker. It supports custom parsing as explained in this help article. You can also check out its online demos for more examples.

    Hope this information helps.

    Best wishes,
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. DevCraft R3 2016 release webinar banner
Back to Top