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

How to pass 34 into a numeric textbox and make it appear 34,000

1 Answer 36 Views
Input
This is a migrated thread and some comments may be shown as answers.
Simon Allport
Top achievements
Rank 2
Simon Allport asked on 26 Jan 2011, 11:57 AM
Hi,
I am using the rad numeric textboxes and i want it to to be able to add ',000' when numbers are added into the box. So i entered 34, it would then automatically format it to 34,000 and i can't work out what would be the best way to do this. Either by having a event handler after the focus has been lost or by some javascript or if there is already a telerik method for doing this.

Any help would be great.

Thanks

Simon

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 26 Jan 2011, 05:06 PM
Hello Simon,

Please try one of the following:
<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server">
    <NumberFormat DecimalDigits="0" PositivePattern="n,000" />
</telerik:RadNumericTextBox>
 
 
<telerik:RadNumericTextBox ID="RadNumericTextBox2" runat="server">
    <NumberFormat DecimalDigits="3" />
</telerik:RadNumericTextBox>

Kind regards,
Daniel
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Input
Asked by
Simon Allport
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Share this question
or