I'm attempting to create a datagrid that has a select list filter that filters the data grid. Within the data grid I would like to have a dropdown listbox for looking up a foreign key value (the same element that was filtered the data grid to begin with)
It seems that within a cfgridcolumn you can use value= and valuedisplay= to make an element a select list. I can never get my page to display anymore than an editable cell. Is there something I'm missing? I would really like this to pull from a query but I left some sample code below (that I expected to work but does not)
<cfgrid name="gridBuildings"
height="400"
query="getBuildings"
appendkey="yes"
griddataalign="left"
gridlines="yes"
rowheaderalign="left"
colheaderalign="left"
selectmode="edit"
enabled="yes"
visible="yes"
format="flash"
autowidth="true">
<cfgridcolumn name="BuildingID" header="BuildingID" display="no">
<cfgridcolumn name="SiteID" header="SiteID" values="1, 2, 3" valuesdisplay="Site1, Site2, Site3"[/color red]>
<cfgridcolumn name="BuildingShortName" header="Short Name">
<cfgridcolumn name="Buildingname" header="Building Name">
</cfgrid>
Like I mentioned, I would really like this to be values from a query result set but even the simple example doesn't work.
Any help would be appreciated.
It seems that within a cfgridcolumn you can use value= and valuedisplay= to make an element a select list. I can never get my page to display anymore than an editable cell. Is there something I'm missing? I would really like this to pull from a query but I left some sample code below (that I expected to work but does not)
<cfgrid name="gridBuildings"
height="400"
query="getBuildings"
appendkey="yes"
griddataalign="left"
gridlines="yes"
rowheaderalign="left"
colheaderalign="left"
selectmode="edit"
enabled="yes"
visible="yes"
format="flash"
autowidth="true">
<cfgridcolumn name="BuildingID" header="BuildingID" display="no">
<cfgridcolumn name="SiteID" header="SiteID" values="1, 2, 3" valuesdisplay="Site1, Site2, Site3"[/color red]>
<cfgridcolumn name="BuildingShortName" header="Short Name">
<cfgridcolumn name="Buildingname" header="Building Name">
</cfgrid>
Like I mentioned, I would really like this to be values from a query result set but even the simple example doesn't work.
Any help would be appreciated.