cfgrid

Posted: 07-08-2005, 02:05 PM
I use a ldap to populate my cfgrid. Therefore, I do not use any cfcolumns
within the cfgrid. How would I adjust the widths of the columns to fit my data.

Ex. User ID is jschmoe, First name is Joe, Last name is Schmoe, and E-mail
addr. is joe.schmoe@hotmail.com

What happens is when I adjust the width of the cfgrid, everything says the
same width, like the User ID column is the same width as the E-mail addr.
column. So I have to make the grid wide enough so the E-mail addr. doesn't get
cut off.

How do you set the column widths equal to the data in the cfgrid?

Heres my code:

<cfgrid format="flash" name="data2" query="results" height="250"
rowheaders="no" enabled="yes" griddataalign="left" autowidth="no">
</cfgrid>

Reply With Quote

Responses to "cfgrid"

brettcristofer
Guest
Posts: n/a
 
CFGRID
Posted: 07-22-2005, 02:37 PM
Can the column on the far left that shows the record number in an applet formatted cfgrid be removed or hidden by default?
Reply With Quote
eastinq
Guest
Posts: n/a
 
Re: CFGRID
Posted: 07-22-2005, 06:49 PM
Did you try setting the rowHeaders value?

<cfgrid rowHeaders="no" ...

Reply With Quote
LabDesigns
Guest
Posts: n/a
 
CFGrid
Posted: 09-08-2005, 06:01 PM
I'm populating a cfgrid inside a ColdFusion flash form and am wondering if
there is a way to change the color of the font on specific rows. My query
grabs all the users for a web site and populates the grid. I wanted to change
the font color for site administrators so it is easier to find them. Any
thoughts? One of my grid columns is labeled 'access' and I'd like to base the
alternate color off this info.

Thanks

Reply With Quote
PaulH
Guest
Posts: n/a
 
Re: CFGrid
Posted: 09-09-2005, 07:55 AM
well one way is to trigger some actionscript to step thru the grid and change
colors on a row-by-row basis:

for (var i:Number=0; i < yourGrid.length;i++) {
if (yourGrid.getItemAt(i).yourGridColumn == someRelevantValue)
yourGrid.setPropertiesAt(i, {backgroundColor:0xF7FFB7});
}

Reply With Quote
LabDesigns
Guest
Posts: n/a
 
Re: CFGrid
Posted: 09-15-2005, 02:18 PM
Thank you. I'll give this a try. Is there an onLoad event that can trigger this, or do I need to attach it to some sort of a button?
Reply With Quote
PaulH
Guest
Posts: n/a
 
Re: CFGrid
Posted: 09-15-2005, 02:41 PM
currently no onLoad in flash forms, have a look at how www.asfusion.com/blog handles it. cheesy but works ;-)

Reply With Quote
sdwebguy99
Guest
Posts: n/a
 
Re: CFGrid
Posted: 09-30-2005, 06:07 PM
As a note, CF 7 updater to 7.0.1 includes the onLoad functionality for cfforms. Great news!

Reply With Quote
kll57
Guest
Posts: n/a
 
cfgrid
Posted: 01-03-2007, 05:18 PM
Does anyone know if you can group records in cfgrid?
My grid is displaying values from a couple of tables that are joined in the query where a many to one relationship exists
ie.

PK col1 col2

1 AA AB
1 AA BB
1 AA CD
1 BB EE
1 BB DE
2 AA AD

When a user selects a row from the grid I display all of the details in a tab page. Currently it just displays the Primary Key with the values from the column selected. I need it to display col1 and col2 grouped by the pk. If a user selects PK 1 I need to display all of the values in col1 and col2 for PK 1.
Instead of gridname.seleteditem.columnname can you use the PK value to requery the db and pass the tab page all of the associated data?

Thanks in advance for any help.



From http://www.developmentnow.com/g/66_2...integration.ht

Posted via DevelopmentNow.com Group
http://www.developmentnow.com
Reply With Quote
SindhuMurugappan
Guest
Posts: n/a
 
CFGRID
Posted: 08-26-2008, 05:23 AM
Hi,
1. In our project we are using CFGRID. But in Applet grid there is no option
for multiple selection. So we decided to use Flash grid. But we are not sure
how feasible it is. IS there any other way to achieve multiple selection in
CFGRID? Please help me out... Its very urgent....

2. In grid while selecting a row i need to fing the cell values selected.
Depending on the selected cell values i need to enable/disable some buttons in
the same form. I need to find the selected cell value before submitting the
form.
Can any one help me in doing this??? Very urgent......

Note: We are using ColdFusion 7.0

Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cfGrid problems Laverda668 Macromedia ColdFusion 5 05-10-2006 03:50 AM
CFGrid does not load Josh_und Coldfusion Flash Integration 1 07-01-2005 03:55 PM
Add Items to CFGrid Armtusk Coldfusion Flash Integration 2 04-02-2005 07:52 PM
CFGRID ? maxRows drazen007 Coldfusion Flash Integration 0 02-25-2005 08:29 AM
cfgrid links t0ad 99 Macromedia ColdFusion 1 02-16-2005 04:51 PM