Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfgridcolumn issue

New Here ,
May 27, 2010 May 27, 2010

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

443
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 28, 2010 May 28, 2010
LATEST

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".

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources