Hi,
I seem to be having an issue with the DatePicker control when I manually edit the date, and in specific situations.
Following is the code used to reproduce the expected/faulty behavior.
PS: I used SmartClient_SC_SNAPSHOT-2010-11-27 to reproduce.
Steps to reproduce the expected behavior:
1. Click in the date control's edit box
2. Type “01-01-01”
3. Press TAB
Result : the date shown is “01/01/2001” (it gets formatted - that's what we expected)
ATTENTION: Reload the XML code between tries
Steps to reproduce the faulty behavior:
1. Click in the date control's edit box
2. Press TAB (calendar pop-up icon should be selected)
3. Press Shift-TAB (EditBox should be selected)
4. Type “01-01-01”
5. Press TAB
Result : the date remains “01-01-01” (we expected it to get formatted to 01/01/2001, as in the first scenario)
Any idea ? Is there a way around this behavior ?
Thanks,
I seem to be having an issue with the DatePicker control when I manually edit the date, and in specific situations.
Following is the code used to reproduce the expected/faulty behavior.
PS: I used SmartClient_SC_SNAPSHOT-2010-11-27 to reproduce.
Code:
<DynamicForm width="400" numCols="4"> <fields> <field title="field 6" width="100" type="date" useTextField="true"/> </fields> </DynamicForm>
1. Click in the date control's edit box
2. Type “01-01-01”
3. Press TAB
Result : the date shown is “01/01/2001” (it gets formatted - that's what we expected)
ATTENTION: Reload the XML code between tries
Steps to reproduce the faulty behavior:
1. Click in the date control's edit box
2. Press TAB (calendar pop-up icon should be selected)
3. Press Shift-TAB (EditBox should be selected)
4. Type “01-01-01”
5. Press TAB
Result : the date remains “01-01-01” (we expected it to get formatted to 01/01/2001, as in the first scenario)
Any idea ? Is there a way around this behavior ?
Thanks,
Comment