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

2 posts, 0 answers
  1. Simon Allport
    Simon Allport avatar
    32 posts
    Member since:
    Aug 2009

    Posted 26 Jan 2011 Link to this post

    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
  2. Daniel
    Admin
    Daniel avatar
    4943 posts

    Posted 26 Jan 2011 Link to this post

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