House of Fusion
Home of the ColdFusion Community
Hostmysite VPS Hosting

Search cf-talk

May 09, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
         1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31


For ColdFusion hosting try HostMySite.com.
Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

Row Height or Padding in CFGrid

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Michael Brennan-White
03/25/2008 02:22 PM

Is there a way to set the Row Height or Padding of a row  in CFGrid.  I have a small number of records I want to display at a time and would like to combine making the grid look like a table with the paging & sorting capabilities of the grid. thanks in advance, Michael

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Azadi Saryev
03/25/2008 04:26 PM

assuming you are referring to an html cfgrid, you will need to modify/'over-ride' the cf's css for the grid. i have managed to achieve a very table-like look by adding the following style declaration to my page with an html cfgrid: [style] td div, table div, form div { margin:0; } .x-grid-header { margin:0; } .x-grid-hd-row td { line-height:normal; } [/style] this removes the annoying margins on various sections of the grid (header/footer, rows), making it look more like a normal table... hth Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Michael Brennan-White wrote: > Is there a way to set the Row Height or Padding of a row  in CFGrid.  I have a small number of records I want to display at a time and would like to combine making the grid look like a table with the paging & sorting capabilities of the grid. > > thanks in advance, > > Michael

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Michael Brennan-White
03/25/2008 08:57 PM

Azadi, Thanks for the reply.  I am referring to an html cfgrid.  I am calling the grid into a div inside a cflayoutarea. Should the CSS code be on the page that is being pulled in or on the index page or as part of the css files being included in the index page? Michael > assuming you are referring to an html cfgrid, you will need to > modify/'over-ride' the cf's css for the grid. > i have managed to achieve a very table-like look by adding the > following > style declaration to my page with an html cfgrid: > [style] > td div, table div, form div { margin:0; } . > x-grid-header { margin:0; } . ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Azadi Saryev
03/25/2008 11:11 PM

Michael, the css should be either on the calling page or loaded page inside a <style></style> block, iirc. not sure if having the content page loaded into a div inside a cflayout area matters or not - it could be that your css will only work if it is on the loaded page, not the calling page... in either case, it CANNOT be in the included/linked stylesheet .css, as CF puts its css styles into the actual page and those will override your settings in a .css file. iirc, cf will put its styles into the calling page... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Michael Brennan-White wrote: ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists
Subscribe Now
Fusion Authority Quarterly Update - ColdFusion 8 Special Edition