May 09, 2008
For ColdFusion hosting try HostMySite.com. |
Home /
Groups /
ColdFusion Talk (CF-Talk)
Row Height or Padding in CFGrid
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.Michael Brennan-White 03/25/08 02:22 P assuming you are referring to an html cfgrid, you will need toAzadi Saryev 03/25/08 04:26 P Azadi,Michael Brennan-White 03/25/08 08:57 P Michael,Azadi Saryev 03/25/08 11:11 P 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 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 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 ----- 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 -----
|
Mailing Lists
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||