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

How to make numeric text box look like asp text box

2 Answers 85 Views
Input
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 21 Jun 2010, 07:15 PM
I am looking for a skin that makes the numeric text box look like the default asp text box.  If anyone has an example that would be great. Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 22 Jun 2010, 09:46 AM
Hi Brian,

You have two options. It is better to use the control with no skin at all, because setting custom border styles will not make the textbox look exactly like standard asp:TextBoxes in all browsers and operating systems.

<%@ Page Language="C#" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
<head runat="server">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>RadControls</title>
<style type="text/css">
 
html body form .RadInput .mytb
{
    border:inset #999;
    border-width:2px 1px 1px 2px;
}
 
</style>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
 
<p>no skin</p>
 
<telerik:RadNumericTextBox ID="RNTB1" runat="server" Skin="" EnableEmbeddedBaseStylesheet="false" />
 
<p>customized skin</p>
 
<telerik:RadNumericTextBox ID="RNTB2" runat="server" CssClass="mytb" />
 
</form>
</body>
</html>


Best wishes,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Brian
Top achievements
Rank 1
answered on 22 Jun 2010, 03:05 PM
Thanks,  just what I was looking for.

Tags
Input
Asked by
Brian
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Brian
Top achievements
Rank 1
Share this question
or