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
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