how do you format font in dropdown list part of combobox

  1. #1

    how do you format font in dropdown list part of combobox

    Last edited by geoffrey.mcgill; Nov 21, 2012 at 10:42 PM. Reason: please use [CODE] tags
  2. #2

    any chance of an answer?

    if i were using an Ajax control i'd do this with a CSS file some thing like this

    .WindowsStyle .ajax__combobox_inputcontainer
            {
            }
            .WindowsStyle .ajax__combobox_textboxcontainer
            {
                width: 100%;
            }
            .WindowsStyle .ajax__combobox_textboxcontainer input
            {
                width: 100%;
        font-size: 16px;
                font-family: Verdana;
            }
            .WindowsStyle .ajax__combobox_buttoncontainer
            {
            }
            .WindowsStyle .ajax__combobox_buttoncontainer button
    {
        background-position: center;
        background-repeat: no-repeat;
        border-color: ButtonFace;
        height: 15px;
        width: 15px;
        background-image: url('../Images/download.jpg');
    }
            .WindowsStyle .ajax__combobox_itemlist
            {
                width:50%;
                margin: 0px;
                padding: 0px;
                cursor: default;
                list-style-type: none;
                text-align: left;
                border: solid 1px ButtonShadow;
                background-color: Window;
            }
            .WindowsStyle .ajax__combobox_itemlist li
            {
                white-space: nowrap;
                padding: 0 3px 0 2px;
            }
            .ajax__combobox_itemlist
    {
       
        padding: 0%;
        cursor: default;
        list-style-type: none;
        text-align: left;
        border: solid 1px ButtonShadow;
        background-color: Window;
        font-size: 16px;
        font-family: Verdana;
        width: 50%;
    }
    then set the CSSClass = WindowsStyle

    there must be something similar in Ext
    Last edited by geoffrey.mcgill; Nov 21, 2012 at 10:42 PM. Reason: please use [CODE] tags
  3. #3
    this can be closed now

    i have figured out how to do it, seems obvious now i know how, it did cause me a bit of frustratuion though

    you set the CLS on the listconfig

    <ext:ComboBox ID="PartnersCombo" 
                    runat="server"
                    FieldLabel="Partners"
                    StoreId="PartnerStore"
                    DisplayField="dptDsc"
                    ValueField="CompanyCDE"
                    Width="300"
                    LabelWidth="150"
                    QueryMode="Local"
                    StyleSpec="left:30px; top:13%; position: absolute;"
                    TypeAhead="true"  ComponentCls="combo1">
                    <DirectEvents>
                            <Select OnEvent="parnerPicked"></Select>
                    </DirectEvents>
    
                    <ListConfig ID="ListConfig1" runat="server" Cls="combo1">
                    </ListConfig>
                </ext:ComboBox>
    Last edited by geoffrey.mcgill; Nov 21, 2012 at 10:42 PM.

Similar Threads

  1. [CLOSED] ComboBox with a GridPanel as dropdown list
    By bogc in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Sep 14, 2011, 6:00 PM
  2. [CLOSED] Dropdown Field List Position
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Apr 14, 2011, 7:04 PM
  3. [CLOSED] Define selected Position of dropdown-list in TimeField
    By macap in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 29, 2010, 5:18 AM
  4. Placing checkbox in the dropdown List
    By n_s_adhikari@rediffmail.com in forum 1.x Help
    Replies: 1
    Last Post: Apr 24, 2010, 7:39 PM
  5. [CLOSED] Editor Font Color Dropdown
    By HOWARDJ in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Sep 16, 2009, 12:36 PM

Tags for this Thread

Posting Permissions