Can not get easier than that:
Extend the RadDateTimePicker. Override its virutal parsing method:
CustomDateTimePicker : RadDateTimePicker
DateTime dt =
ParseDateTimeEventArgs pdtea =
), e.PreviousValue, dt, isSuccessful);
pdtea.Result = pdtea.Result;
Replace all the "." with "/", create new fake ParseDateTimeEventArgs and use the base.OnParseDateTime to do the built in parsing for you.
Use the new CustomDateTimePicker like that:
And the DateTimePicker will parse strings like 1.1.2001 to a date like 1/1/2001. The only problem is that once the date is parsed from string to DateTime other methods are used to render the DateTime back to string and "/" will appear on the place of the ".". You can change the DateTimePicker's culture in order to use . as separators but then "/" will be lost and converted to ".".
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!