Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
Ian O'Betz #1
item selected cfselect with cfgrid
If anyone's found a better way to make an item selected in a cfselect using
cfgrid that the following, let me know:
<cfgrid name="AddressGrid" format="Flash" query="Addresses" maxRows="5"
selectmode="edit" insert delete insertbutton="Add New Address"
deletebutton="Delete Selected Address"
onchange="for (var i:Number = 1; i<State.length; i++) {if
(State.getItemAt([i]).data == AddressGrid.selectedItem.State)
State.selectedIndex = i}">
<cfgridcolumn name="AddressID" display="no">
<cfgridcolumn name="Contact" header="Name">
<cfgridcolumn name="State" header="State">
</cfgrid>
<cfselect name="State" width="160" required message="State is a required
field.">
<cf_state7>
</cfselect>
After much time and effort spent reading flex docs, I just decided to loop
through the options in the select... Is this best coding practices?
-- Ian O'Betz
Clear Results
[url]www.clearresults.net[/url]
Ian O'Betz Guest
-
how do you populate cfselect when cfgrid selected row ischanged
hi can anyone enlighten me as to how to pass data to a cfselect from a cfgrid i am using a listner function so that the grid can populate form... -
cfselect in cfgrid
Does anyone know how to place a cfselect element in a cfgrid or if it is even possible? I need an editable grid. It would be ideal if one of the... -
selected= not working in cfselect
I am working on my admin interface for a department and I need to have a cfselect actually hilight the value that is passed from a query (like it is... -
testing whether row/item selected in cfgrid on submitformat=flash
I have a cfgrid format=flash. Can you demonstrate how to validate that a row has been selected when the user clicks submit and provide feedback if a... -
CFSELECT + CFGRID
I have 2 queries 1 shows all customers other shows all accounts. I would like to have a CFSELECT that shows all customers, then in the CFGRID- blank... -
Mike Nimer #2
Re: item selected cfselect with cfgrid
This is the only reliable way I've been able to do it myself, so far.
--nimer
"Ian O'Betz" <sysopNUNYO@SPAMclearresults.net> wrote in message
news:cv1ge6$p0g$1@forums.macromedia.com...> If anyone's found a better way to make an item selected in a cfselect
> using
> cfgrid that the following, let me know:
>
> <cfgrid name="AddressGrid" format="Flash" query="Addresses" maxRows="5"
> selectmode="edit" insert delete insertbutton="Add New Address"
> deletebutton="Delete Selected Address"
> onchange="for (var i:Number = 1; i<State.length; i++) {if
> (State.getItemAt([i]).data == AddressGrid.selectedItem.State)
> State.selectedIndex = i}">
> <cfgridcolumn name="AddressID" display="no">
> <cfgridcolumn name="Contact" header="Name">
> <cfgridcolumn name="State" header="State">
> </cfgrid>
> <cfselect name="State" width="160" required message="State is a
> required
> field.">
> <cf_state7>
> </cfselect>
>
> After much time and effort spent reading flex docs, I just decided to loop
> through the options in the select... Is this best coding practices?
>
> -- Ian O'Betz
> Clear Results
> [url]www.clearresults.net[/url]
>
>
>
Mike Nimer Guest
-
Ian O'Betz #3
Re: item selected cfselect with cfgrid
Sounds good to me. Thanks Mike.
-- Ian
"Mike Nimer" <mnimer@macromedia.com> wrote in message
news:cv2h94$g6a$1@forums.macromedia.com...loop> This is the only reliable way I've been able to do it myself, so far.
>
> --nimer
>
>
> "Ian O'Betz" <sysopNUNYO@SPAMclearresults.net> wrote in message
> news:cv1ge6$p0g$1@forums.macromedia.com...> > If anyone's found a better way to make an item selected in a cfselect
> > using
> > cfgrid that the following, let me know:
> >
> > <cfgrid name="AddressGrid" format="Flash" query="Addresses" maxRows="5"
> > selectmode="edit" insert delete insertbutton="Add New Address"
> > deletebutton="Delete Selected Address"
> > onchange="for (var i:Number = 1; i<State.length; i++) {if
> > (State.getItemAt([i]).data == AddressGrid.selectedItem.State)
> > State.selectedIndex = i}">
> > <cfgridcolumn name="AddressID" display="no">
> > <cfgridcolumn name="Contact" header="Name">
> > <cfgridcolumn name="State" header="State">
> > </cfgrid>
> > <cfselect name="State" width="160" required message="State is a
> > required
> > field.">
> > <cf_state7>
> > </cfselect>
> >
> > After much time and effort spent reading flex docs, I just decided to>> > through the options in the select... Is this best coding practices?
> >
> > -- Ian O'Betz
> > Clear Results
> > [url]www.clearresults.net[/url]
> >
> >
> >
>
Ian O'Betz Guest
-
bwellisch #4
Re: item selected cfselect with cfgrid
Would you happen to know how to do the same thing with radio buttons instead of a select list?
TIA
bwellisch Guest



Reply With Quote

