Jump to content
uniGUI Discussion Forums
Volk65

UniDateTimePicker and Numeric KeyPad

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.

Share this post


Link to post
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,

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×