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. Image for the cookie policy date
close icon

how to add suffix in textbox

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).

1 Reply

AB Ashokkumar Balasubramanian Syncfusion Team 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. 


Loader.
Live Chat Icon For mobile
Up arrow icon