Skip to main content
Participating Frequently
March 7, 2009
Question

Feature Req: Ability to use CFGrid in Tabbed Panels.

  • March 7, 2009
  • 1 reply
  • 583 views
Currently, there is no way to use a data grid in a tabbed panel in cold fusion ... this is really sad. I hope in the future, you can do such a thing ..

Now this may be a little misleading. But as if CF 8.0.1, if you place a CF grid into a spry panel, you cannot see any data until you click on a column header to sort by that column. At that time, the grid will expand to show all columns, and rows of data. Until then, cfgrid refuses to show anything.
This topic has been closed for replies.

1 reply

Inspiring
March 7, 2009
> Currently, there is no way to use a data grid in a tabbed panel in cold fusion

Really? What makes you say that?


<cfscript>
// mock-up some data
q = queryNew("id,firstName,lastName");
queryAddRow(q); querySetCell(q, "id", 1); querySetCell(q, "firstName",
"Adam"); querySetCell(q, "lastName", "Cameron");
queryAddRow(q); querySetCell(q, "id", 2); querySetCell(q, "firstName",
"Jane"); querySetCell(q, "lastName", "Smith");
queryAddRow(q); querySetCell(q, "id", 3); querySetCell(q, "firstName",
"Bob"); querySetCell(q, "lastName", "Brown");
queryAddRow(q); querySetCell(q, "id", 3); querySetCell(q, "firstName",
"Sarah"); querySetCell(q, "lastName", "Williams");
</cfscript>

<cfform method="post" action="#CGI.script_name#" format="flash">
<cfformgroup type="tabnavigator">
<cfformgroup type="page" label="Grid Tab">
<cfgrid name="myGrid" format="Flash" query="q" selectmode="edit"/>
</cfformgroup>
<cfformgroup type="page" label="Another Tab">
<cfinput type="text" name="someText" />
</cfformgroup>
</cfformgroup>

<cfinput type="submit" name="submit" value="Submit" />
</cfform>

<cfif structKeyExists(form, "fieldNames")>
<cfdump var="#form#">
</cfif>


Seems to work OK to me. Am I misreading your statement?

--
Adam
Participating Frequently
March 10, 2009
try changing the format to html, and you will see the bug :) My apologies for not putting that in the first post.