Skip to content

Date Time Picker #903

Closed
Closed

Description

@itg-assistant

Levie Rufenacht asked 2017-06-16 20:53:06 UTC

Hi,

I am trying to use a DateTime Picker control and am having issues when typing in dates.  I have one control that works fine when I type in a date like "1/1/10".  The other control always cuts off the first character that I type in, leaving the field as: "/1/10".  They are the same controls so I am not sure why the one is doing this.

I always have to go back to the beginning of the field and retype in the 1.

Am I doing something wrong or is there a fix for this?

Thanks,

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2017-06-16 21:01:48 UTC

    Hi Levie,

    I have tried to reproduce that here but failed so far. Can you please share some more details / code ?

    Are those DateTimePicker controls located on the same form ? Do they have the same Format / Locale. Any Events attached to them ?

    Thanks in advance !

    Best regards
    Frank

  2. added
    BugSomething is broken or behaving unexpectedly.
    on Jun 12, 2026
  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Levie Rufenacht answered 2017-06-19 13:12:53 UTC

    They are not in the same form, they are actually in different solutions. There are no events attached to either control. I also tried deleting it and adding a new control but that didn’t work. The formats are the same and the locales are the same (All of the settings are the exact same). Here is a video showing the problem: https://www.screencast.com/t/Sx6YPUh4nGel As you can see, as soon as the first character is typed, it is automatically deleted.

  4. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2017-06-20 17:16:48 UTC

    Hi Levie, are you sure there is no validation active ? From your video it seems there is some kind of validation or the datepicker is losing the focus ? Can you reproduce in a new application with simple basic DateTimePicker controls ? Thanks in advance. Best regards, Frank

  5. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Levie Rufenacht answered 2017-06-23 13:09:08 UTC

    I am attaching a project that has the issue in it.  I believe it has something to do with the user controls and timers.

    Here is another video showing the issue on the attached solution: https://www.screencast.com/t/sLHXe3nukKS

    Thank you for your help,

    Levie

  6. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-06-23 18:08:18 UTC

    Thanks! The timer is generating a round trip causing the DateTimePicker to try to format the typed value which is incomplete while you are typing. Logged as WJ-8324.

  7. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Levie Rufenacht answered 2017-06-23 19:01:16 UTC

    Awesome! Does that mean it will be patched in an update or do I need to make modifications to my program?

  8. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-06-23 20:01:11 UTC

    No need to change your code. The issue is that Wisej has a state update system where it syncs the server with changed values when an event occurs since the app handling the event expects the values to be the same as they are in the browser. In the case of the DateTimePicker this out-of-sync update causes a datetime parsing and the problem you see. I can send you a workaround if you need it right away. Otherwise a dev build will be uploaded tonight.

  9. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-06-23 20:13:49 UTC

    Forgot to add that with Wisej you can update the client from a server thread without the need for using timers on the client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions