Skip to main content
Inspiring
December 12, 2012
Answered

Getting EXT error in CFGrid using a valuelist in a cfgridcolumn

  • December 12, 2012
  • 1 reply
  • 669 views

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!

This topic has been closed for replies.
Correct answer DaveKraft

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.

1 reply

DaveKraftAuthor
Inspiring
December 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

DaveKraftAuthor
Inspiring
December 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.

DaveKraftAuthorCorrect answer
Inspiring
December 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.