Skip to main content
July 14, 2008
Question

cfgrid in cflayoutarea

  • July 14, 2008
  • 1 reply
  • 399 views
I have a simple cfgrid that works perfectly when I call the page directly. However, when I pull the page into a cflayout cflayoutarea the striperows don't show up and the selected row won't stay selected. I've tried binding to the cfc, to the url and taking it out of the cfc and using cfinclude and I get the same result every time. Is there something simple I'm doing wrong?

Grid Code:


<!--- Import Ajax tags --->
<cfajaximport tags="cfgrid, cfform">

<!--- Title --->
<p>
<span class="subtitle">Prospects:</span>
</p>


<!--- Display Grid --->
<cfform>
<cfgrid name="prospectGrid"
pagesize="12"
width="803"
format="html"
striperows="true"
bind="cfc:components.prospects.getGridProspectData ('#SESSION.auth.contactID#',
{cfgridpage},
{cfgridpagesize},
{cfgridsortcolumn},
{cfgridsortdirection})">



<cfgridcolumn name="LastName" header="Last Name" display="yes" headerbold="yes">
<cfgridcolumn name="FirstName" header="First Name" display="yes" headerbold="yes">
<cfgridcolumn name="SiteCity" header="City" display="yes" headerbold="yes">
<cfgridcolumn name="SitePhone" header="Phone" display="yes" headerbold="yes">
<cfgridcolumn name="Sitefax" header="Fax" display="yes" headerbold="yes">
<cfgridcolumn name="Email" header="Email" display="yes" headerbold="yes">
<cfgridcolumn name="Status" header="Status"display="yes" headerbold="yes">
<cfgridcolumn name="StartDate" header="Date Started" display="yes" headerbold="yes">


</cfgrid>
</cfform>


Layout Page Code:

<link href="../membersite/member1.css" rel="stylesheet" type="text/css" />
<cfajaximport tags="cfgrid, cflayout-border, cfform">




<!--- ajax layout for account page --->
<cflayout type="border">
<cflayoutarea position="left" name="accountleft" size="50">
</cflayoutarea>

<cflayoutarea position="top" name="accounttop">
</cflayoutarea>

<cflayoutarea position="center" name="accountcenter">
<cfdiv bind="url:myprospects.cfm?contactID=#SESSION.auth.contactID#">
</cflayoutarea>


<cflayoutarea position="bottom" name="accountbottom" size="400">
</cflayoutarea>


<cflayoutarea position="right" name="accountright" size="400">
</cflayoutarea>

</cflayout>


This topic has been closed for replies.

1 reply

July 15, 2008
Nevermind, the problem was with an old CSS table cell bg-color overriding the cfgrid striperows.