Announcement

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

    Set date field via text field on form

    If I set a date field in a form to use a text field (useTextField = true), it doesn't post the new date when I manually change its value. This works in an editable grid. Changing it via the calendar icon works. Should I synchronize the text field's value somehow?

    #2
    I've investigated the problem a bit more and it looks like the problem arises from the saveOnEnter option I have in the form. When I navigate to another field and press Enter, the correct date is saved, but when I press Enter in the date field itself, it posts the old value.
    Last edited by wallytax; 29 Jul 2010, 02:23.

    Comment


      #3
      What's your exact SmartClient version?

      Are you able to try this in a nightly?

      Can you demonstrate this effect by modifying one of the samples in the Feature Explorer?

      Comment


        #4
        I'm using 7.0.rc2 and have tried a nightly (of 8) earlier this week, not for this particular problem, but just to check it out. I was trying SmartGWT and found out it uses this 8 version as Javascript library.

        Is the unpacked (or unconfuscated) source code available? I wanted to look how this calendar item is built. I figure it synchronizes the field's value in a blur event. It works if I tab out of the field and press Enter to submit the form. It also works when I select the date via the calendar icon.

        I will try to find an example that I can modify.

        Comment


          #5
          In the LGPL package, source is available under smartclientSDK/source. The sources for this component are exactly the same for the commercial version.

          Comment

          Working...
          X