CodeSmith Community
Your Code. Your Way. Faster!

EntityGridView Footer Font Formatting

Latest post 01-08-2008 10:11 AM by Techgrowth. 4 replies.
  • 01-07-2008 12:05 PM

    • Techgrowth
    • Not Ranked
    • Joined on 12-06-2007
    • St. Petersburg, FL
    • Posts 3
    • Points 75

    EntityGridView Footer Font Formatting

    New to .nettiers but so far have got everything working fine with reading online. Got a small pesky issue here. 

    I tried everything I can think of so far to get these fonts looking right but they just keep displaying wrong. I want the footer fonts to match the rest of the grid and site. (see image)

    <data:EntityGridView id="dgMembers" CssClass="normal" Width="862px" Runat="server" CellSpacing="1" AllowPaging="True" CellPadding="4" BorderWidth="0px" DataSourceID="dsMembers" Height="47px" AutoGenerateColumns="False" AllowSorting="True" Font-Names="Arial,Helvetica,sans-serif" Font-Size="11px" GridLines="None" ShowFooter="True">

    I am using CSS for the site design, not templates or themes. EntityGridView has a class assigned to it:

     

    .normal

    {

    border:none;

    font-family:Arial, Helvetica, sans-serif;

    font-size:11px;

    padding:10px;

    line-height:18px;vertical-align:top;

     

    }

     Thanks for any input on this one.

    Chris Techgrowth, Inc. http://www.techgrowth.com
    • Post Points: 35
  • 01-07-2008 3:37 PM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 734
    • Points 17,040

    Re: EntityGridView Footer Font Formatting

     Try the following:

     

    <data:EntityGridView id="dgMembers" CssClass="normal" Width="862px" Runat="server" CellSpacing="1" AllowPaging="True" CellPadding="4" BorderWidth="0px" DataSourceID="dsMembers" Height="47px" AutoGenerateColumns="False" AllowSorting="True" Font-Names="Arial,Helvetica,sans-serif" Font-Size="11px" GridLines="None" ShowFooter="True"
    PagerStyle-CssClass="grid-pager"
    >
        <AlternatingRowStyle CssClass="grid-alternating-row-style" />
        <RowStyle CssClass="grid-row-style" /> 

    </data:EntityGridView>


    .grid-pager, .grid-alternating-row-style, .grid-row-style
    {

        font-size:12px;
    }
     

    Mike Shatny
    --------------------------------------------------------------
    Member of the .netTiers team http://www.nettiers.com
    --------------------------------------------------------------

    • Post Points: 35
  • 01-07-2008 9:03 PM In reply to

    • Techgrowth
    • Not Ranked
    • Joined on 12-06-2007
    • St. Petersburg, FL
    • Posts 3
    • Points 75

    Re: EntityGridView Footer Font Formatting

    Thanks for that - so close to completly fixing it, acceptable actually in my eyes, not sure if the client will complain. Now only the number in the right after the "Show Page:" is big, everything else is fixed up. I used my own style on them instead of the one you suggested called "normal" and you can see below it effected every cell but that one with the numbers.

    <table border="0">
    <tbody>
    <tr>
    <td class="normal" style="white-space: nowrap;">Show Page: </td>
    <td>
    <span>1</span>
    </td>

    <td class="normal" style="white-space: nowrap;">  (Total Records: 2)</td>
    <td class="normal" style="width: 100%;"/>
    <td class="normal" style="white-space: nowrap;">
    </td>
    <td class="normal" align="right" style="white-space: nowrap;">Records Per Page: </td>
    <td class="normal" align="right">
    </td>
    </tr>
    </tbody>
    </table>

     

    Is there a specific style name for that one ?

    Chris Techgrowth, Inc. http://www.techgrowth.com
    • Post Points: 35
  • 01-08-2008 9:13 AM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 734
    • Points 17,040

    Re: EntityGridView Footer Font Formatting

    Reply |Contact |Answer

    Chris,

     That should do the trick:

    .normal SPAN
    {
        border:none;
        font-family:Arial, Helvetica, sans-serif;
        font-size:11px;
        padding:10px;
        line-height:18px;vertical-align:top;
    }

    Mike Shatny
    --------------------------------------------------------------
    Member of the .netTiers team http://www.nettiers.com
    --------------------------------------------------------------

    • Post Points: 35
  • 01-08-2008 10:11 AM In reply to

    • Techgrowth
    • Not Ranked
    • Joined on 12-06-2007
    • St. Petersburg, FL
    • Posts 3
    • Points 75

    Re: EntityGridView Footer Font Formatting

    Thanks Mike for the solution !

     

    Chris Techgrowth, Inc. http://www.techgrowth.com
    • Post Points: 5
Page 1 of 1 (5 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems