Skip to main content
Inspiring
Dec 12, 2012 8:14 PM UTC
Answered

Getting EXT error in CFGrid using a valuelist in a cfgridcolumn

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 is closed to new replies. Start a new post to keep the conversation going.
DaveKraftCorrect answer
Inspiring
Dec 13, 2012 8:08 PM UTC

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.

3 replies

DaveKraftAuthor
Inspiring
Dec 12, 2012 8:34 PM UTC

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
DaveKraftAuthor
Inspiring
Dec 13, 2012 1:58 PM UTC

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
DaveKraftAuthorCorrect answer
Inspiring
Dec 13, 2012 8:08 PM UTC

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