jQuery UI Widgets Forums Grid How to restrict decimal places upto 8 digits

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 11 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • anandbabu
    Participant

    Hi,
    I am using Keyboard navigation grid and my requirement is to stop key press after exceed 8 decimal places e.g(12.12345678) if i try to enter 9 then cell not allow to enter the value.I know this we can achieve through jqxNumberInput but in that if i enter 1.2 its showing 1.20000000 in edit mode and also if i press up and down arrow value is changing and i dnot to want to change the value when up and down key press.


    Dimitar
    Participant

    Hello anandbabu,

    Unfortunately, this cannot be achieved without the use of a numberinput editor. Note that when you use it, it does not have to show many zeros after the decimal separator (see the demo Editing, “Price” column). An alternative is to validate the entered value, which is also demonstrated in the same demo.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.