Skip to main content
Participant
September 13, 2012
Question

CFGRID headings do not display when CFGRID is inside a TABLE

  • September 13, 2012
  • 1 reply
  • 606 views

CFGRID headers do not display when the CFGRID is inside of a TABLE.  If I mouse over where the headings are supposed to be they appear. Is there a way to force them to appear when the CFGRID is inside a TABLE. If I put my CFGRID outside the table they always appear.

Here is my code: (IF I remove the Talel the headers always appear)

<TABLE>

<TR>

  <TD>

   <CFSET BindVaraible = 'YES'>

   <CFSET GridSize = 20>

   <CFGRID NAME="grid_XXXPDA" FORMAT="HTML" BINDONLOAD="#variables.BindVaraible#"

    PAGESIZE="#variables.GridSize#" SELECTMODE="BROWSE"

    BIND="cfc:WebServices.XXX.getData({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})"

       SELECTONLOAD="FALSE"

       COLHEADERBOLD="YES" COLHEADERS="YES" ROWHEADERS="NO"

    STRIPEROWS="YES" STRIPEROWCOLOR="##E8E8E8" APPENDKEY="No">

     <CFGRIDCOLUMN NAME="SID" SELECT="No" HEADER="S ID" TYPE="NUMERIC" WIDTH="100" >

     <CFGRIDCOLUMN NAME="Firstname" SELECT="No" HEADER="First Name" TYPE="STRING_NOCASE" WIDTH="85">

     <CFGRIDCOLUMN NAME="Lastname" SELECT="No" HEADER="Last Name" TYPE="STRING_NOCASE" WIDTH="85">

   </CFGRID> 

  </TD>

</TR>

</TABLE>

This topic has been closed for replies.

1 reply

mctobeyAuthor
Participant
September 14, 2012

I found the answer:

4 ColdFusion 9 Release Notes Bug Number Area Description 78312 ColdFusion Ajax In Internet Explorer, if you have a grid inside a table, grid column headers do not display. This is an Internet Explorer-related issue. As a workaround, specify head and doctype tags as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

I added that to my code and now the headings always appert when the CFGrid is inside the table.