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

How to create simple text input field

Im wondering what UI component I can use for just a simple text input field (such as login name field). You have MaskEditTextBox, NumericTextBox, CurrencyTextBox, PercentageTextBox...

But there is no simple TextBox?

3 Replies

DL Deepa Loganathan Syncfusion Team May 18, 2016 11:43 AM UTC

Hi Tom,    
  
Sorry for the inconvenience.  
   
We do not have a separate Helper for rendering a normal Textbox. However, we have given Themes support to achieve standard Syncfusion like textbox in appearance. In that case, we suggest you to add ‘e-textbox’ class to Textbox Html Helper.   
  
Please use the code snippet provided below   
   
@Html.TextBox("username", null, new { @class = "e-textbox" })   
<style> 
    .e-textbox { 
        box-sizing: border-box; 
    } 
</style> 
   
 
    
Please let us know if you have any further queries.   
  
Regards,    
Deepa L.   



TF Tom Frajer May 18, 2016 12:42 PM UTC

It works. Thank you very much.


DL Deepa Loganathan Syncfusion Team May 19, 2016 05:41 AM UTC

Hi Tom,    
  
Thanks for the update.     
    
We are glad to know the issue has been resolved at your end.     
  
Please let us know if you need any further assistance.     
     
Regards,      
Deepa L.  


Loader.
Up arrow icon