Groups | Blog | Home
all groups > coldfusion flash integration > september 2005 >

coldfusion flash integration : CFGrid


LabDesigns
9/8/2005 6:01:18 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
PaulH
9/9/2005 7:55:01 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});
}
LabDesigns
9/15/2005 12:00:00 AM
PaulH
9/15/2005 12:00:00 AM
currently no onLoad in flash forms, have a look at how www.asfusion.com/blog handles it. cheesy but works ;-)
sdwebguy99
9/30/2005 6:07:04 PM
As a note, CF 7 updater to 7.0.1 includes the onLoad functionality for cfforms. Great news!
AddThis Social Bookmark Button