Copy link to clipboard
Copied
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!
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.