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

RadNumeric Textbox Min Value

4 Answers 139 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Atchut
Top achievements
Rank 1
Atchut asked on 01 Jun 2012, 02:12 AM
Hello,

I gave MinValue="0" still textbox is allowing "-" Sign. I dont want user to allow negative sign.

The textbox is accepting negative and decimal. I want user to enter positive numbers only.

Can I mask this using MaskEdit Extender.

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Jun 2012, 05:09 AM
Hi Atchut,

Please try the following code for not allowing negative signs and Decimal Digits.

ASPX:
<telerik:RadNumericTextBox MinValue="0" ID="RadNumericTextBox3" runat="server">
    <NumberFormat GroupSeparator="" DecimalDigits="0" />       
</telerik:RadNumericTextBox>

Thanks,
Shinu.
0
Atchut
Top achievements
Rank 1
answered on 01 Jun 2012, 04:57 PM
What makes the difference. Is it GroupSeperator or Decimal Digits 0?
0
Shinu
Top achievements
Rank 2
answered on 04 Jun 2012, 05:19 AM
Hi Atchut,

DecimalDigits specifies the number of digits that are displayed after the decimal separator.GroupSeparator specifies the character that separates each group of digits.Its DecimalDigits="0" which will not allow textbox accepting decimal digits. Sorry for confusing you by giving GroupSeparator along with the code.

Thanks,
Shinu.
0
Atchut
Top achievements
Rank 1
answered on 04 Jun 2012, 12:45 PM
I want 2 decimal digits. Issue is, we are able to enter more than 2 digits and after that it is getting rounded.

I dont want rounding. I just dont want to allow user more than 2 digits after decimal
Tags
Grid
Asked by
Atchut
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Atchut
Top achievements
Rank 1
Share this question
or