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

Problem with ComboBox skins css

2 Answers 91 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Luke Kasper
Top achievements
Rank 1
Luke Kasper asked on 12 Nov 2010, 03:34 PM
All,

I created a new skin using the Telerik Visual Style Builder and I'm trying to implement it on my ComboBox.  My skin is called Test and it's in a file called ComboBox.Test.css.  Here's the code I have for the combobox:

<telerik:RadComboBox ID="rdCmbBoxQFind" runat="server" EnableEmbeddedSkins="false" CssClass="Test"
    MarkFirstMatch="false" EnableLoadOnDemand="true" DropDownWidth="725px" OffsetX="-567" EnableItemCaching="true" AutoPostBack="false" EmptyMessage="Enter Name or Acronym"  
    MaxLength="130" ShowToggleImage="false" ShowDropDownOnTextboxClick="true" OnClientBlur="QFOnClientBlur" OnClientTextChange="QFOnClientTextChange" 
    EnableTextSelection="false" OnClientItemsRequesting="QFOnClientItemsRequesting" OnClientItemsRequested="QFOnClientItemsRequested" OnClientItemsRequestFailed="QFOnClientItemsRequestFailed"
    ChangeTextOnKeyBoardNavigation="false" OnClientSelectedIndexChanged="QFOnClientSelectedIndexChanged" OnClientSelectedIndexChanging="QFOnClientSelectedIndexChanging" OnClientDropDownClosing="QFOppClick"
    OnClientKeyPressing="QFOnClientKeyPressing">
    <HeaderTemplate>No result(s) found.</HeaderTemplate>
</telerik:RadComboBox>

Here are the issues I'm running into:

1. I can't seem to figure out where to register my css file and have it actually render to the page. My combobox is on it's own control page, which is then embedded into another control, which goes onto a page which uses a master page.  So where should I register the css?  I say that almost rhetorically, because I've registered it on every page I just mentioned and it doesn't show up on the rendered page (I'm checking for it using IE Developer Toolbar).

2. Also, when I look at the classes assigned to the combobox in IE Dev Toolbar, it's showing three classes: RadComboBox, RadComboBox_Default, and Test (I've also tried RadComboBox_Test to no avail).  Why is Default showing up?  I can't figure that out for the life of me.

Any help would be greatly appreciated. 
-Luke

2 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 15 Nov 2010, 09:17 AM
Hi Luke,

Register it in the master page or place an asp:ContentPlaceHolder in the head tag and link the CSS file from the content page. The skin should be set in RadComboBox' definition with Skin="Test". Check this help article for more info about skin registration.

Greetings,
Kamen Bundev
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
Luke Kasper
Top achievements
Rank 1
answered on 19 Nov 2010, 04:34 PM
Thank you.  It was the missing Skin property.
Tags
ComboBox
Asked by
Luke Kasper
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Luke Kasper
Top achievements
Rank 1
Share this question
or