I am having a horrible time trying to get my cfgrid format (html) to layout
correctly. Is it buggy our just something i'm missing?
1. When resizing the columns, the rows misalign.
2. 90% of the time a scroll shows up. Why? The scroll bars are ugly. What's
the deal?
If someone explain to me what I'm doing wrong and how to clean up it's
display, I would be greatli obliged.
My code is listed.
<cfform name="allvenues">
<cfgrid name="venues" format="html" pagesize="10" width="790"
bind="cfc:fVenues.getVenues({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cf
gridsortdirection})" striperows="true" striperowcolor="##e0e0e0">
<cfgridcolumn name="ven_id" header="ID" width="50" />
<cfgridcolumn name="ven_name" header="Name" width="290" />
<cfgridcolumn name="ven_city" header="City" width="150" />
<cfgridcolumn name="state_id" header="State" width="150" />
<cfgridcolumn name="country_id" header="Country" width="150" />
</cfgrid>
</cfform>
AbhiFusion - 17 Sep 2007 13:27 GMT
I was able to work with the cfgrid in following code manner. Here I am using a
query to populate the table.
Please see if it helps you.
<cfform name = "form1">
<cfgrid name="example" colheaderalign="CENTER" query="getInfo"
autowidth="yes" colHeaders = "Yes" height="170" width="730">
<cfgridcolumn name="name" header="Name" headeralign="CENTER" dataalign="left"
width="190" bold="Yes">
<cfgridcolumn name="roleSeq" display="no">
<cfgridcolumn name="description" header="Description" headeralign="CENTER"
dataalign="left" width="420">
<cfgridcolumn name="empCount" bold="Yes" header="NO. Employee"
headeralign="CENTER" dataalign="CENTER" width="90">
</cfgrid>
</cfform>