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

Restrict to enter decimal values.

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ramesh
Top achievements
Rank 1
Ramesh asked on 17 Aug 2015, 11:48 AM

Hi Team,

I have created a Radgrid dynamically which has a "GridNumericColumn" for numeric operation, also I set its properties like "DecimalDigits = 4" ,"DataFormatString = "{0:f4}"" AllowRounding = false and KeepNotRoundedValue = true;

My intention is, the user should not allow to enter more than 4 decimals in edit mode. but It allowing the user to enter more than 4 decimals in edit mode!

Is there any possibility to restrict alow  more than 4 decimals  ?

Note : My grid has more numeric columns with different decimals.(example 2, 3 and 4 ,like 12.12 , 23.234 and   12.1234)

Regards,

Ramesh.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 19 Aug 2015, 08:09 AM
Hi Ramesh,

When the DecimalDigits property is set to the GridNumericColumn, it should reduce the decimal digits count to 4 after user blur, as demonstrated in the attached web site sample.

Also, please make sure that you are closely following the steps provided in the following section when creating the grid programmatically:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/defining-structure/creating-a-radgrid-programmatically#creating-a-radgrid-on-page_init

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Ramesh
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or