This is a migrated thread and some comments may be shown as answers.

[Solved] default currency validator broken with step:0.01

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 19 Sep 2014, 08:42 AM
I have modified the kendo grid popup editor example to have min:0.01 and step:0.01 as one penny is the minimum currency unit. However, this causes the browsers based price validation to fail when you enter '9.88'.  '9.87' works fine, but it really doesn't like '9.88' - it displays 'Unit price is invalid'.

UnitPrice: { type: "number", validation: { required: true, min: 0.01, step:0.01} },


I have created a repro case here:

http://dojo.telerik.com/aTaRE

Just edit any of the entries in the grid (in the pop-up editor) and change the Unit Price to 9.88. This is in the chrome browser if it makes a difference.

Cheers, Paul.

1 Answer, 1 is accepted

Sort by
0
Accepted
Alexander Popov
Telerik team
answered on 22 Sep 2014, 02:59 PM
Hi Paul,

I managed to reproduce the behavior you described and I forwarded it to our development team for further analysis. Meanwhile I would recommend setting the NumericTextBox's step value through the Grid's edit event handler, as shown in this example.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or