Problem with ComboBox skins css

3 posts, 0 answers
  1. Luke Kasper
    Luke Kasper avatar
    18 posts
    Member since:
    Mar 2010

    Posted 12 Nov 2010 Link to this post

    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. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 15 Nov 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Luke Kasper
    Luke Kasper avatar
    18 posts
    Member since:
    Mar 2010

    Posted 19 Nov 2010 Link to this post

    Thank you.  It was the missing Skin property.
Back to Top