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

NumericTextBoxes with 4 decimal places

0 Answers 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
M
Top achievements
Rank 1
M asked on 23 Nov 2012, 04:51 PM
I've got a Grid configured to be inline editable. It has a couple of numeric fields which for which I've created custom validation.
The validation sets the min and max values based on another field which requires an $.ajax call.

This is working fine -- but I need the NumericTextBoxes to support 4 decimal places.

I've tried using a custom editor and setting the decimal and format parameters -- this allows 4 decimal places but breaks the custom validation. I've also tried editing the culture file and setting numberFormat to 4 decimals -- but this doesn't work -- the last two decimals are ignored.

Is there a way I can either set the default number format to 4 decimal places, or use a custom editor AND custom validator for a NumericTextBox?

Thanks

No answers yet. Maybe you can help?

Tags
Grid
Asked by
M
Top achievements
Rank 1
Share this question
or