Restrict to enter decimal values.

2 posts, 0 answers
  1. Ramesh
    Ramesh avatar
    18 posts
    Member since:
    Apr 2015

    Posted 17 Aug 2015 Link to this post

    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)



  2. Eyup
    Eyup avatar
    4046 posts

    Posted 19 Aug 2015 Link to this post

    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:

    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
Back to Top