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

RadNumericTextBox Display plus sign

1 Answer 128 Views
Input
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 06 Dec 2011, 07:02 PM
Hi, I have an app where I am using a RadNumericTextBox, I am required to allow users to enter positive and negative numbers and the sign must always be shown.  I have found no way to have the radnumerictext box to allow entering a positive number as +1.75, negative works fine.  This is for an optometry app where numbers are always entered with leading sign.

Anyone know how to make radnumerictextbox allow leading + sign.

Thanks
John

1 Answer, 1 is accepted

Sort by
0
Accepted
Kevin
Top achievements
Rank 2
answered on 08 Dec 2011, 02:16 PM
Hello John,

You could just change the format for Positive numbers to show the plus sign. Like so:

<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server">
    <NumberFormat PositivePattern="+ n" />
</telerik:RadNumericTextBox>

It doesn't allow + to be entered, but it will at least format to appear that it was entered.

I hope that helps.
Tags
Input
Asked by
John
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Share this question
or