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