Time in RadDateTimePicker setting to AM if changing to PM

2 posts, 0 answers
  1. LLG
    LLG avatar
    5 posts
    Member since:
    Apr 2010

    Posted 04 Aug 2010 Link to this post


    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.
        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!
  2. George
    George avatar
    1332 posts

    Posted 09 Aug 2010 Link to this post

    Hello LLG,

    Thank you for contacting us.

    You could refer to this topic.

    Best wishes,
    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
Back to Top