RadNumericTextBox Display plus sign

2 posts, 1 answers
  1. John
    John avatar
    1 posts
    Member since:
    Jul 2011

    Posted 06 Dec 2011 Link to this post

    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
  2. Answer
    Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 08 Dec 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top