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

How to remove currency symbol in radnumerictextboxradnumerictextbox

2 Answers 589 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Purushothama
Top achievements
Rank 1
Purushothama asked on 26 Oct 2016, 07:42 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
kishore
Top achievements
Rank 1
answered on 28 Oct 2016, 11:34 AM

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

0
Eyup
Telerik team
answered on 31 Oct 2016, 01:55 PM
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.
Tags
NumericTextBox
Asked by
Purushothama
Top achievements
Rank 1
Answers by
kishore
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or