How to remove currency symbol in radnumerictextboxradnumerictextbox

3 posts, 0 answers
  1. Purushothama
    Purushothama avatar
    6 posts
    Member since:
    Jun 2016

    Posted 26 Oct Link to this post

    Hi,

    I am using Radnumerictextbox with type=currency with different cultures set depending on the requirements. Suppose, if I use culture as "en-US" it is displaying the entered amount with Dollar format. And it also displayes $ symbol at the beginning.  But I don't want to display the symbol. So is it possible to set the radnumerictextbox to display the amount without the symbol... Ex : If I enter 1234 , it displays $1.234

    I want only amount without $ symbol

    Thanks in advance for your answer.

    Regards,

    Puru

    R

  2. kishore
    kishore avatar
    5 posts
    Member since:
    Jun 2016

    Posted 28 Oct in reply to Purushothama Link to this post

    Hi Puru,

    If you don't need the currency symbol, then dont give the [Type] property. 

    Only the [Culture] property is enough to get the digits in required format.

     

    <telerik:RadNumericTextBox RenderMode="Lightweight" runat="server" ID="radtxtAmt"  Width="200px" EmptyMessage="Enter unit price"  MinValue="0" Culture="en-US"></telerik:RadNumericTextBox>

    OR,

    u can even set the Culture property from code behind like below 

    radtxtAmt.Culture = CultureInfo.CreateSpecificCulture("en-US");

     

    Hope this helps :) 

    Regards,

    KK

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Eyup
    Admin
    Eyup avatar
    3005 posts

    Posted 31 Oct Link to this post

    Hi Guys,

    Yes, thank you for sharing your experience with our community.
    You can also check the following article:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/input/radnumerictextbox/formatting-numeric-values

    Regards,
    Eyup
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Back to Top