Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Potential Date Picker issue ?

    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.

    Code:
    <DynamicForm width="400" numCols="4">
        <fields>
            <field title="field 6" width="100" type="date" useTextField="true"/>
        </fields>
    </DynamicForm>
    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,

    #2
    I see the same behaviour - it is reproduceable each time.

    Comment


      #3
      What's happening is that focus is moving internally within the DateItem so the user is not regarded as having completed editing (which is what normally triggers parsing and reformatting the date). We're looking at having this triggered when focus leaves the textField at all instead.

      Comment


        #4
        We've now resolved this issue. Give it a try with the next nightly build (Dec 3 or greater)
        Thanks
        Isomorphic Software

        Comment


          #5
          Thanks for this fix. It now seems to be working properly.

          Sorry for the late confirmation.

          Regards,

          Comment

          Working...
          X