Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / September 2007



Tip: Looking for answers? Try searching our database.

My cfGrid is not looking nice.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
romeogq - 14 Sep 2007 22:55 GMT
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>
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.