Skip to main content
MusicManMD
Known Participant
May 27, 2010
Question

cfgridcolumn issue

  • May 27, 2010
  • 1 reply
  • 468 views

OK CF'ers I need help.

I have a select within a grid (see below):

<cfgridcolumn name="ship_class" header="Class" width="65" values="#valuelist(getClass.ship_class)#" valuesdisplay="#valuelist(getClass.ship_class_id)#" />

Initial grid displays like I want:  Select 1

Problem:

When I activate the dropdown I see the id value for this select instead of the display value.

When the grids select is active I see '1' (ID Value) instead of 'Select 1'.

I want the grid select to work like a normal cfselect and have the display value be the name and have the value be the value ID.  Is that possible?

Thanks in advance!

-David

    This topic has been closed for replies.

    1 reply

    May 28, 2010

    hmmm, probably you should change the values for the properties "values" und "valuesdisplay"!

    For the property "valuesdisplay" you use "getClass.ship_class_id". This is the ID, or am I wrong? Instead use "getClass.ship_class" for "valuesdisplay" and "getClass.ship_class_id" for "values".