• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfgrid in cflayoutarea

Guest
Jul 14, 2008 Jul 14, 2008

Copy link to clipboard

Copied

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>


TOPICS
Advanced techniques

Views

359

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 15, 2008 Jul 15, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation