Date Time Picker

0
0

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,

  • You must to post comments
0
0

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.

  • Levie Rufenacht
    Awesome! Does that mean it will be patched in an update or do I need to make modifications to my program?
  • Luca (ITG)
    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.
  • Luca (ITG)
    Forgot to add that with Wisej you can update the client from a server thread without the need for using timers on the client.
  • You must to post comments
0
0

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

Attachment
  • You must to post comments
0
0

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

  • Levie Rufenacht
    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.
  • Frank (ITG)
    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
  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.