Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2350
igNumericEditor - Fixed number of decimals does not work in 16.2
posted

Hello,

We are currently updating from Infragistics 15.1 to 16.2. One issue that we found is that the igNumericEditor in a grid row edit dialog cannot be setup with a fixed number of decimals like in 15.1.

Here is a 15.1 example: http://jsfiddle.net/k3Lx2v73/1/ Double click the first row in the grid to bring up the edit dialog. Click on the "Units In Stock" field, and 39.0000000000 shows up. This is expected because i have the minDecimals and maxDecimals values set to 10. Likewise, a user cannot add places.

Here is a 16.2 example: http://jsfiddle.net/uofcft8z/1/  Double click the first row in the grid to bring up the edit dialog. Click on the "Units In Stock" field, and 39 shows in the edit dialog. This is an issue because the user could enter in additional decimal places that might not be saved to the server (e.g. they could enter in 39.000000000000001 which would not save correctly because it goes beyond 10 decimals.

Is there a way to duplicate the 15.1 functionality in 16.2?

Thanks,

Paul

Parents
  • 1100
    Offline posted

    Hello Paul,

    Thank you for using Ignite UI!

    The behavior that you are observing is the designed one for the new igNumericEditor. A complete new set of Ignite UI editors was introduced with the release of version 15.2.

    In this case the validation of the value that is entered is done when blurring the editor. When the editor is blurred, the user will see that the value is cropped if he has entered more digits than the maxDecimals value. If you want to explicitly point the attention of the user to that - you can implement some custom logic and you can notify the user after the blur event is fired.

    As you are migrating from the old to the new editors, you can also check this topic to see the other changes related to the numeric editor - https://www.igniteui.com/help/migrating-to-the-new-ignumericeditor

    Best regards,
    Alexander Marinov,
    Infragistics

Reply Children