Jump to content

UniDateTimePicker and Numeric KeyPad


Volk65

Recommended Posts

Hi all!

 

If you enter a date on the numeric keypad at the national layout, instead of a "dot" ('.') prints a comma. And the date looks like this: 12,03,2018.

How can I replace the comma for a point?

Replacing key value in the event of OnKeyPress and Onkeydown will not work.

 

THX.

Link to comment
Share on other sites

Hi,

 

Can you try to use this approach ?!:

 

UniDateTimePicker -> ClientEvents -> ExtEvents -> function keydown:

function keydown(sender, e, eOpts)
{
    if(e.keyCode == 110){
        me = sender;
        e.preventDefault();
        me.setRawValue(me.getRawValue() + '.');
    }
}

Best regards,

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...