RadTextbox with number and decimal point

3 posts, 0 answers
  1. Rahul
    Rahul avatar
    142 posts
    Member since:
    May 2009

    Posted 02 Dec 2013 Link to this post

    I just need validation on my rad textbox . Only alllow only number with $ and decimal point. Textbox inside radgrid template column

    example $ 123.33 or $ 12342.00.

    Thanks

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Dec 2013 Link to this post

    Hi Rahul,

    As a suggestion you can use RadNumericTextBox with Type as Currency.  Please have a look into the following code snippet.

    ASPX:
    <telerik:RadNumericTextBox ID="RadNumericTextBox1" Type="currency" runat="server">
    </telerik:RadNumericTextBox>

    Let me know if you have any concern.
    Thanks,
    Shinu.

  3. Cameron
    Cameron avatar
    1 posts
    Member since:
    Dec 2007

    Posted 08 Oct 2018 Link to this post

    Try using DataType  = "System.Decimal"  on  telerik:RadNumericTextBox 
    <telerik:RadNumericTextBox ID="txtLoanBalance" runat="server" DataType="System.Decimal">
        <NegativeStyle Resize="None"></NegativeStyle>
     
        <NumberFormat ZeroPattern="n"></NumberFormat>
     
        <EmptyMessageStyle Resize="None"></EmptyMessageStyle>
     
        <ReadOnlyStyle Resize="None"></ReadOnlyStyle>
     
        <FocusedStyle Resize="None"></FocusedStyle>
     
        <DisabledStyle Resize="None"></DisabledStyle>
     
        <InvalidStyle Resize="None"></InvalidStyle>
     
        <HoveredStyle Resize="None"></HoveredStyle>
     
        <EnabledStyle Resize="None"></EnabledStyle>
    </telerik:RadNumericTextBox
Back to Top