Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > DatePicker > Overriding native input parsing

Not answered Overriding native input parsing

Feed from this thread
  • Mike Gardner avatar

    Posted on Jul 20, 2011 (permalink)

    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.

    Thanks,
    Mike

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Jul 25, 2011 (permalink)

    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,
    Konstantina
    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!

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > DatePicker > Overriding native input parsing
Related resources for "Overriding native input parsing"

WPF DatePicker Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]