Having similar feature as the number data type in flexgrid for InputNumber

Posted by: weide.zhu on 26 January 2021, 8:13 pm EST

  • Posted 26 January 2021, 8:13 pm EST

    hello,

    We are currently using FlexGrid (Angular), and set the column something like '[dataType]=2 [format]=“‘n2’” ', so if user types number ‘2.10234’, the displayed value becomes ‘2.10’, and when highlighting the cell for editing, the actual(underlying) value is shown like ‘2.10234’ which makes sense.

    Now we want to use Wijmo inputNumber control, and we noticed that it does not allow typing more than 2 decimals if the format is ‘n2’, is there anyway to have the similar behavior as the flexgrid cell?

    Thanks and Regards,

    Weid

  • Posted 27 January 2021, 6:01 am EST

    Hello Weid,

    The behavior observed is by design for InputNumber. If you would like to make it the same as the FlexGrid cell. You need to handle the gotFocus event and set the Control Format to nx where x is the number for precision digit to show while interacting with InputNumber. We also need to handle the lostFocus event to set the format to n2 again.

    Regards,

    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels