[CLOSED] Any way to change the Fieldset Title font color?

  1. #1

    [CLOSED] Any way to change the Fieldset Title font color?

    I know I can change the font color of the items within the fieldset but I need to change the fieldset title color to red when there's a certain bad condition.
    Last edited by Daniil; May 02, 2011 at 10:37 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Please look at the example.

    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>
    
        <style type="text/css">
            .my-header .x-fieldset-header-text {
                color: red;
            }
        </style>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
        <ext:FieldSet ID="FieldSet1" runat="server" Title="Title" />
        <ext:Button runat="server" Text="Toggle">
            <Listeners>
                <Click Handler="FieldSet1.header.toggleClass('my-header');" />
            </Listeners>
        </ext:Button>
        </form>
    </body>
    </html>

Similar Threads

  1. fieldset title
    By zhouguoguang in forum 1.x Help
    Replies: 0
    Last Post: Sep 30, 2010, 6:21 AM
  2. How to change the font color for Ext Label
    By rasu_13 in forum 1.x Help
    Replies: 0
    Last Post: Apr 03, 2010, 3:12 AM
  3. FieldSet title shifting when expanding/collapsing
    By dbassett74 in forum 1.x Help
    Replies: 0
    Last Post: May 28, 2009, 7:57 PM
  4. FieldSet title shifting when expanding/collapsing
    By dbassett74 in forum 1.x Help
    Replies: 4
    Last Post: May 06, 2009, 1:15 PM
  5. set Title in Fieldset dynamically
    By jmilton in forum 1.x Help
    Replies: 4
    Last Post: Mar 27, 2009, 4:39 PM

Posting Permissions