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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use HTML textbox as Syncfusion textbox

Using Normal Textboxes as Syncfusion Ttextboxes

 

In an application or a webpage, you may can use normal textboxes along with the other Syncfusion components, since there is no separate EJplugin or EJHelpers for textboxes.

So, you may want to make a normal textbox to look like Syncfusion textbox in order to achieve uniform look and appearance in your webpage.To achieve uniform look and appearance in your webpage, you should make a normal textbox to look like Syncfusion textbox.

This can be achieved executed by adding the ‘e-textbox’ class to the HTML element or helpers.

By adding this class, the textbox will have standard look and appearance as other components for all the themes supported by Syncfusion.

Code snippet

JS

 

<input type="text" class="e-textbox" value="This is a normal Textbox"/>

 

 

MVC

 

@Html.TextBox("textbox", "This is a normal Textbox", new { @class = "e-textbox"})

 

 

Webforms

 

<asp:TextBox runat="server" CssClass="e-textbox">This is a Normal Textbox</asp:TextBox>

 

 

The Textbox will be rendered as shown below.in the following:

Using Normal Textboxes as Syncfusion Textboxes with AnimationUsing Normal Textboxes as Syncfusion Textboxes with Animation.

 

We have provided tThe animation support for Material Theme is provided for EJ components. We can provide an animation supportIt can be provided for normally contracted input by constructing the new span element and adding the ‘e-animation’ class to the corresponding input. Please check the below following code block.

 

HTML

 

<input id="demo" class="e-textbox e-animation" placeholder="Enter your name" />

  <span class="e-ripple-bar"></span>

 

 

MVC

 

@Html.TextBox("textbox", "This is a normal Textbox", new { @class = "e-textbox e-animation"})

<span class="e-ripple-bar"></span>

 

Webforms

 

<asp:TextBox runat="server" CssClass="e-textbox e-animation">This is a Normal Textbox</asp:TextBox>

<span class="e-ripple-bar"></span>

 

Sample Location

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
6917 05/31/2016 12/15/2017 ASP.NET MVC NumericTextbox
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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