Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
nerd_boy #1
CFGRID row highlight programtically
Can you programatically set a row to be highlighted in a CFGRID? I want to have
the first row selected every time the form is loaded so as to populate some
other fields I have in the form which are bound to the grid? Anyone got any
code that does this???
nerd_boy Guest
-
Printing programtically
I am trying to print from my plugin without throwing up the Print dialog, but it is not working. I am using the AVDocPrintPagesWithParams API call... -
cfgrid auto highlight top entry?
Hello, I am wondering if there is a wy for cfgrid to automatically highlight the an entry as selected when the form loads in flash? Thanks in... -
highlight selected row of a flash <cfgrid>
My flash <cfgrid> displays a query. The query contains two columns named 'id' and 'name'. I have one <cfgridcolumn> embeded in the <cfgrid> to... -
Highlight
Is there a way to select text and add a color highlight, like say, brown behind white text? I didn't see a highliter in the toolbox and I checked ID... -
Help: How can I find the error in a Procedure programtically
We have a procdure. Every night it will become invalid, but it will be recompiled automatically by our scripts. There is no bad influence on our... -
hollyjones #2
Re: CFGRID row highlight programtically
This will do it.
--Holly
<cfscript>
title = "Binding an image to a cfgrid with thumbnail";
properties = queryNew("id,name");
queryAddRow(properties);
querySetCell(properties,'id','1');
querySetCell(properties,'name','Tom');
queryAddRow(properties);
querySetCell(properties,'id','2');
querySetCell(properties,'name','Dick');
queryAddRow(properties);
querySetCell(properties,'id','3');
querySetCell(properties,'name','Harry');
queryAddRow(properties);
querySetCell(properties,'id','4');
querySetCell(properties,'name','Sally');
</cfscript>
<cfsavecontent variable="onLoad">
grdProps.setFocus();
grdProps.setSelectedIndex(0);
</cfsavecontent>
<cfsavecontent variable="binding">
{(trigger.text != '') ? trigger.dispatchEvent({type:'change'}) : 'init'}
</cfsavecontent>
<cfform name="mainform" format="flash" method="post" width="400"
onchange="#onLoad#" bind="#binding#">
<cfformgroup type="panel">
<cfformgroup type="horizontal">
<cfformgroup type="vbox">
<cfgrid format="flash" query="properties" name="grdProps" width="240"
rowheaders="no">
<cfgridcolumn name="name" header="Name">
</cfgrid>
<cfinput type="text" visible="false" height='0' width="0" name="trigger"
value="init" onchange="#onLoad#" bind="#binding#">
</cfformgroup>
</cfformgroup>
</cfformgroup>
</cfform>
hollyjones Guest
-
pope on acid #3
Re: CFGRID row highlight programtically
This works, thx !!!
But can you give us a few words of what is the invisible textbox and the second cfsavecontent-tag exactly does, please?
Thx
pope on acid Guest
-
JadeBlue #4
Re: CFGRID row highlight programtically
The text input and the code in the cfsavecontent tag are a necessary workaround
if you want to select the first item on form load because flash forms do not
have an onload attribute.
You can read more about that at
[url]http://www.asfusion.com/blog/entry/onload-event-coldfusion-flash-forms-2[/url]
Laura
JadeBlue Guest



Reply With Quote

