Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
Change ReadOnly Combo Text colorusing CSS
posted

Hi,

I've the following issue; I need to display the readonly Combo with a different color since the default grey is not visible on some laptops.

Combos are set readOnlyonly if the user is readOnly therefore I'd like to change with CSS and not into the view (is a MVC application).

Is it possible?How Can I do it?It should work for IE8

Thank you in advance

Kind regards

Simone 

Parents
  • 23953
    Suggested Answer
    Offline posted

    Hi Simone,

    You can try the following CSS if you want all the igCombo's which are set with (mode: "readonly"):


    .ui-igcombo input[readonly] {
        background-color: #E0E0E0;
    }

    If you want to style only one igCombo by id then the use the following CSS:


    #combo1 input[readonly] {
        background-color: #E0E0E0;
    }

    Hope this helps,
    Martin Pavlov
    Infragistics, Inc.

Reply Children