[CLOSED] Make disabled=true field font black

  1. #1

    [CLOSED] Make disabled=true field font black

    How to make disabled=true field font black instead of grey for the whole application instead of having to change each field? Our client is complaining that it's difficult to read...
    Last edited by Daniil; Nov 21, 2011 at 2:05 PM. Reason: [CLOSED]
  2. #2
    Hi,

    You should override the CSS "x-item-disabled" class.

    But there is the problem in IE - it doesn't allow to override its own disabled CSS.

    Try to run the following example in IE and any other one like FireFox or Chrome.

    We have no solution for IE, it's built-in in a browser.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!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>Ext.Net Example</title>
    
        <ext:ResourcePlaceHolder runat="server" Mode="Style" />
        <style type="text/css">
            .x-item-disabled {
                opacity: 1;
                filter: alpha(opacity = 100);
                color: black;
            }
        </style>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <input type="text" class="x-item-disabled" disabled="disabled" value="HTML input" />
            <ext:DisplayField runat="server" Text="DisplayField" Disabled="true" />
            <ext:TextField runat="server" Text="TextField" Disabled="true" />
        </form>
    </body>
    </html>

Similar Threads

  1. Replies: 2
    Last Post: Apr 25, 2012, 5:31 PM
  2. [CLOSED] LinkButton.Disabled = True
    By deejayns in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 30, 2011, 2:55 PM
  3. [CLOSED] make text of textfields with disabled=true black
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 09, 2011, 2:20 PM
  4. [CLOSED] Disabled=true
    By Vasudhaika in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 10, 2011, 8:30 AM
  5. Replies: 0
    Last Post: May 04, 2010, 8:08 AM

Posting Permissions