You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
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
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.
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.
Activity
itg-assistant commentedon Jun 12, 2026
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
itg-assistant commentedon Jun 12, 2026
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.
itg-assistant commentedon Jun 12, 2026
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
itg-assistant commentedon Jun 12, 2026
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
itg-assistant commentedon Jun 12, 2026
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.
itg-assistant commentedon Jun 12, 2026
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?
itg-assistant commentedon Jun 12, 2026
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.
itg-assistant commentedon Jun 12, 2026
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.