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

Getting EXT error in CFGrid using a valuelist in a cfgridcolumn

Explorer ,
Dec 12, 2012 Dec 12, 2012

I can see my valuelist choices when I click on the gridcolumn in my CFGrid.

But I am also seeing a weird choice added to the valuelist choices. It is some kind of Ext error I believe.

The valuelist named "PositionChoice" should display "Include" and "Remove"

The weird choice in the valuelist options begins with: <div class=x-grid-col-0

I initialize the valuelist like this:

<cfset PositionQuery = QueryNew("IncludeORNot", "VarChar")>

<cfset newRow = QueryAddRow(PositionQuery, 2)>

<cfset temp = QuerySetCell(PositionQuery, "IncludeORNot", "Include", 1)>

<cfset temp = QuerySetCell(PositionQuery, "IncludeORNot", "Remove", 2)>

<cfset PositionChoices = #ValueList(PositionQuery.IncludeORNot,",")# />

-----------------------------------------------------------------------------

I call my valuelist in the CFGrid like this:

<cfgridcolumn name="GroupChoice" header="Group Choice"  values="#PositionChoices#"  width="20" display="true" select="true"/>       
       

I am developing this on my CF8 dev box.

Have you experienced this weirdness? Any solutions or insights? Thanks!

618
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

correct answers 1 Correct answer

Explorer , Dec 13, 2012 Dec 13, 2012

OK, found the reason for the weirdness.

There is no room for creativity in naming cfgridcolumn when using a bound grid.

As soon as I fixed the gridcolumn name to the column name in the bound table the problem was cured.

So I'm noting this in case someone has the same issue.

Translate
Explorer ,
Dec 12, 2012 Dec 12, 2012

Here is the full text of what I'm seeing the valuelist output:

<div class="x-grid-col-0 x-grid-cell-inner"><div class="x-grid-cell-text" unselectable="on"> </div></div

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
Explorer ,
Dec 13, 2012 Dec 13, 2012

It appears to be isolated to my CF 8 test environment. The error does not appear in my CF9/EXT 3.01 production environment, so I'll just ignore it during dev.

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
Explorer ,
Dec 13, 2012 Dec 13, 2012
LATEST

OK, found the reason for the weirdness.

There is no room for creativity in naming cfgridcolumn when using a bound grid.

As soon as I fixed the gridcolumn name to the column name in the bound table the problem was cured.

So I'm noting this in case someone has the same issue.

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