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

RadTextbox with number and decimal point

2 Answers 970 Views
Input
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 02 Dec 2013, 06:42 AM
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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Dec 2013, 10:43 AM
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.

0
Cameron
Top achievements
Rank 1
answered on 09 Oct 2018, 12:45 AM
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
Tags
Input
Asked by
Rahul
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Cameron
Top achievements
Rank 1
Share this question
or