[CLOSED] Ext.net v2 Beta release: I can´t change font-size of displayfield

  1. #1

    [CLOSED] Ext.net v2 Beta release: I can´t change font-size of displayfield

    Hi

    I can´t change font-size of displayfield... I´m trying set the properties StyleSpec, FieldStyle and LabelStyle, as follow

    Thanks for any help.

    <%@ Page Language="vb"  %>
    <%@ 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></title>
    </head>
    <body>
        <ext:ResourceManager ID="resManagerDividas" runat="server" />
        <form id="form1" runat="server">
        <ext:DisplayField runat="server" Text="I can´t change font-size of displayfield... (20px)" FieldStyle="font-size:20px;" StyleSpec="font-size:20px;" LabelStyle="font-size:20px;" />
        <ext:DisplayField ID="DisplayField1" runat="server" Text="I can´t change font-size of displayfield... (15px)" FieldStyle="font-size:15px;" StyleSpec="font-size:15px;" LabelStyle="font-size:15px;"/>
        <ext:DisplayField ID="DisplayField2" runat="server" Text="I can´t change font-size of displayfield... (10px)" FieldStyle="font-size:10px;" StyleSpec="font-size:10px;" LabelStyle="font-size:10px;"/>
        <ext:DisplayField ID="DisplayField3" runat="server" Text="I can´t change font-size of displayfield... (5px)" FieldStyle="font-size:5px;" StyleSpec="font-size:5px;" LabelStyle="font-size:5px;"/>
        </form>
    </body>
    </html>
    Last edited by Daniil; Mar 22, 2012 at 1:33 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please use FieldCls.

    Example
    <style type="text/css">
        .my-font {
            font-size: 20px;
        }
    </style>
    
    <ext:DisplayField 
        runat="server" 
        Text="Hello World!" 
        FieldCls="my-font" />
  3. #3
    FieldStyle should work? This is a bug? If yes, I will wait the fix.
  4. #4
    At the first glance I would consider it a bug. We are investigating further.
  5. #5
    We will fix it a bit later. We will update the thread when commit the fix.
  6. #6
    Ok... thanks Daniil!
  7. #7
    Please update from SVN.
  8. #8
    Works! Thanks a lot, Daniil.

Similar Threads

  1. Font Size Change
    By megang in forum 1.x Help
    Replies: 1
    Last Post: Apr 09, 2012, 10:02 AM
  2. [CLOSED] Ext.net 2v Beta Release: DisplayField don't wrap text.
    By supera in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 26, 2012, 3:08 PM
  3. [CLOSED] DisplayField font-size not changed using StyleSpec
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 24, 2012, 2:58 PM
  4. Change font/button size
    By plykkegaard in forum 1.x Help
    Replies: 0
    Last Post: Sep 02, 2010, 3:09 PM
  5. [CLOSED] how to change grid font size
    By sharif in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 16, 2010, 1:35 PM

Posting Permissions