[CLOSED] DisplayField font-size not changed using StyleSpec

  1. #1

    [CLOSED] DisplayField font-size not changed using StyleSpec

    In version 1.x, the code bellow works very fine...

    <ext:DisplayField runat="server" ID="dsMsg" X="5" Y="170" Width="500px" Style="font-size:9px" Text="*O n˙mero do contrato identifica a dÝvida junto ao cliente(loja). Pode ser o n║ da nota fiscal, duplica, cheque, etc." />
    After upgrading for 2.x version of ext.net, this code don┤t work anymore...

    I try change the
    Style="font-size:9px"
    For
    StyleSpec="font-size:9px"
    did not work too

    Any help?
    Last edited by Daniil; Jan 24, 2012 at 3:08 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Confirmed, it won't work in v2 anymore.

    I can suggest the following solution.

    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 v2 Example</title>
    
        <style type="text/css">
            .my-display-field .x-form-display-field {
                font-size: 9px;
            }
        </style>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:DisplayField runat="server" Text="Hello World!" Cls="my-display-field" />
        </form>
    </body>
    </html>
    Last edited by Daniil; Jan 24, 2012 at 2:46 PM.
  3. #3
    Hi Daniil...

    I use a FieldStyle="font-size:9px", as suggested by you in another thread, and works...

    Thanks a lot

Similar Threads

  1. Replies: 1
    Last Post: Apr 09, 2012, 10:05 AM
  2. Font Size Change
    By megang in forum 1.x Help
    Replies: 1
    Last Post: Apr 09, 2012, 10:02 AM
  3. Replies: 7
    Last Post: Mar 22, 2012, 1:17 PM
  4. [CLOSED] increase font size
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 29, 2011, 7:04 AM
  5. [CLOSED] RowEditor font size
    By sharif in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Mar 02, 2010, 4:08 PM

Posting Permissions