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

Custom Skin Problem with radTextBox

1 Answer 91 Views
Input
This is a migrated thread and some comments may be shown as answers.
Norm
Top achievements
Rank 1
Norm asked on 06 Sep 2008, 07:22 AM
I have copied the outlook skin to the root of my application, renamed to MySkin, then I editted the CSS file and replace all '_Outlook' with '_MySkin' in the Input.Outlook.css (renamed to Input.Myskin.css).

The aspx code is listed below...

My problem is that when I run the application the textbox does not look like the textbox when Skin is set to "Outlook".

So I cannot even start to customize this skin.

Please advise, I have spend far too many hours on this "simple" task.

<%

@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

 

<%

@ register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<!

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<

html xmlns="http://www.w3.org/1999/xhtml">

<

head runat="server">

<title></title>
<link id="Link1" href="~/MySkin/Input.MySkin.css" rel="stylesheet" type="text/css" runat="server" />
</
head>
<
body>
<form id="form1" runat="server">
<div><asp:scriptmanager id="ScriptManager1" runat="server" />
<telerik:radtextbox id="RadTextBox1" runat="server" Skin="MySkin" EnableEmbeddedSkins="False" ></telerik:radtextbox>

</div>
</form>
</
body>
</
html>

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 07 Sep 2008, 04:06 PM
Hello Norm,

This one should be easy indeed. Your aspx page looks OK, so the problem is caused by an invalid file location or wrong CSS selector syntax.

1) Please make sure that the CSS file location is valid and the CSS file is registered successfully on the page.

2) Make sure that the spelling of the skin name ("MySkin") in the RadTextBox declaration exactly matches the skin suffix in all CSS classes in the CSS file. Note that CSS is a case-sensitive language. Look for extra spaces (e.g. ClassName  _MySkin) or anything, which could make the CSS selectors invalid.

3) Make sure that all references to images in the CSS file have valid relative/absolute URLs.

If you still have troubles with making this work, please open a new support ticket and send us a simple project, so that we can see what is missing.


Sincerely yours,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Input
Asked by
Norm
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or