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

[Solved] RadNumericTextboxes with greater than 15 decimal place precision

1 Answer 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Zachary
Top achievements
Rank 1
Zachary asked on 16 Jul 2013, 02:02 PM
Question

Can the RadNumericTextbox be configured support a precision greater than 15 decimal places?

I can see that JavaScript can't, for the Number class, which I'm certain the RadNumericTextbox uses for client side validation.

Scenario
I have a RadGrid that pulls data from a data set populated by a SQL table that contains columns of type numeric(38,20). That level of precision is required in my application.

Workaround
Before I set the datasource of the RadGrid, I change all the columns of type Decimal in my dataset to be type String.

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 19 Jul 2013, 12:10 PM
Hi Zachary,

The RadNumericTextBox uses Double server side and Float client side, and it is limited to the precision of these types.
You can use the Int64 (long)mask of RadInputManager if you like to type up to 18 digits:
http://www.telerik.com/help/aspnet-ajax/input-maskedtextbox-masks.html

Regards,
Vasil
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Zachary
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or