We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to add suffix in textbox

Thread ID:

Created:

Updated:

Platform:

Replies:

129083 Feb 24,2017 11:04 PM UTC Feb 27,2017 08:12 AM UTC ReactJS 1
loading
Tags: ejNumericTextbox
Christopher Hui
Asked On February 24, 2017 11:04 PM UTC

is there a way to add a suffix in the text box?

i want to be able to add a suffix (unit value) inside the textbox after the number. (pt, px, lb, oz, etc).

Ashokkumar Balasubramanian [Syncfusion]
Replied On February 27, 2017 08:12 AM UTC

Hi Christopher, 
 
We have analyzed your query (“how to add suffix in textbox”). Currently we don’t have the option to achieve this requirement in Numeric Textbox component, but you can achieve this requirement in Percentage and Currency Textbox components using “positivePattern API. Please find the below code snippet. 
 
[JSX] 
 
   <EJ.PercentageTextbox value={20} width="150" positivePattern="n px"> 
   </EJ.PercentageTextbox> 
 
For your convenience, we have prepared simple sample with your requirement. it can be downloaded in below location. 
 
 
To know more details about the positivePattern property, please refer the below link.  
 
 
Please let us know, if you have any other concerns. 
 
Regards, 
Ashokkumar B. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;