This is a migrated thread and some comments may be shown as answers.

Time in RadDateTimePicker setting to AM if changing to PM

1 Answer 167 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
LLG
Top achievements
Rank 1
LLG asked on 04 Aug 2010, 02:56 PM
Hi,

We were trying out the RadDateTimePicker control (both using en-US).  We tried putting it in 2 columns of RadGridView (in its CellEditTemplate), using it as a start and end date/time selections.  We added a SelectionChanged and ParseDateTimeValue events to both controls, changing the value of end date/time (2nd control) when it's less than the value of the start date/time (1st control). The control is working perfectly except when selecting a PM time value for the 2nd control.
1. Original time for control1  is 9:00 AM (same time for control2). 
2. Select new time (1:00 PM) for control1, control2 displays 1:00 PM too.
3. Go to control2 to try to select another time. Upon clicking on control2, its time changes from 1:00 PM to 1:00 AM.
    Notes: 
    a. First, it triggers control2's ParseDateTimeValue event, and the following would be the values:
        args.TextToParse = <date> 1:00 PM
        args.Result = <date> 1:00 AM
        control 2's ToolTipContent property = <date> 1:00 AM
        control 2's SelectedValue property = null
    b. Second, it goes to control2's SelectionChanged event,
        e.AddedItems[0] = <date> 1:00 AM
        e.RemovedItems has no items
    c. Then, after control2's SelectionChanged event, the ParseDateTimeValue event is called again.
        args.TextToParse = <date> 1:00 PM
        args.Result = <date> 1:00 AM
        control 2's ToolTipContent property = <date> 1:00 AM
        control 2's SelectedValue property = <date> 1:00 AM

Is there a way to fix this? Thanks!

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 09 Aug 2010, 01:10 PM
Hello LLG,

Thank you for contacting us.

You could refer to this topic.

Best wishes,
George
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
Tags
DateTimePicker
Asked by
LLG
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or