Skip to main content
itisdesign
Inspiring
November 17, 2009
Question

Bug #80708 - HTML/boolean cfgridcolumn prevents underline from href cfgridcolumn at position 'x'

  • November 17, 2009
  • 1 reply
  • 749 views

Feels weird filing bugs over 'there' and attaching files 'here', but w/e..  Ok, so this bug creates a rather interesting experience for the end-user, when some cfgridcolumn links have underlines, and others do not.  And it is a very exact/repeating pattern, as you'll see (if you run this code and/or view the attached image [in the zip]).  Requirements are: 1) Grid must be HTML, 2) boolean cfgridcolumns must be 'select'able (editable grid)

-Aaron Neff

============================================

Bug for: HTML/boolean cfgridcolumn prevents underline from href cfgridcolumn at position 'x' (where x = nth occurance of boolean/cfgridcolumn = the # of columns to the right of current boolean/cfgridcolumn)


===========
Application.cfc
===========
component {THIS.name="Testgridhref";}

===========
index.cfm
===========
<cfform>
  <cfgrid name="myGrid" format="html" selectmode="edit" width="600" autowidth="yes" selectonload="no" bind="cfc:MyCFC.getGridData({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})" onChange="cfc:MyCFC.setGridData({cfgridaction},{cfgridrow},{cfgridchanged})">
  <cfgridcolumn name="column1" select="no" header="Col 1" href="http://www.coldfusion.com" hrefkey="column1" />
  <cfgridcolumn name="column2" select="yes" header="Col 2" type="boolean" />
  <cfgridcolumn name="column3" select="no" header="Col 3" href="http://www.coldfusion.com" hrefkey="column3" />
  <cfgridcolumn name="column4" select="no" header="Col 4" href="http://www.coldfusion.com" hrefkey="column4" />
  <cfgridcolumn name="column5" select="yes" header="Col 5" type="boolean" />
  <cfgridcolumn name="column6" select="no" header="Col 6" href="http://www.coldfusion.com" hrefkey="column6" />
  <cfgridcolumn name="column7" select="no" header="Col 7" href="http://www.coldfusion.com" hrefkey="column7" />
  <cfgridcolumn name="column8" select="no" header="Col 8" href="http://www.coldfusion.com" hrefkey="column8" />
  <cfgridcolumn name="column9" select="yes" header="Col 9" type="boolean" />
  <cfgridcolumn name="column10" select="no" header="Col 10" href="http://www.coldfusion.com" hrefkey="column10" />
  <cfgridcolumn name="column11" select="no" header="Col 11" href="http://www.coldfusion.com" hrefkey="column11" />
  <cfgridcolumn name="column12" select="no" header="Col 12" href="http://www.coldfusion.com" hrefkey="column12" />
  </cfgrid>
</cfform>

===========
MyCFC.cfc
===========
<cfcomponent output="no">
<!--- ::getGridData():: --->
<cffunction name="getGridData" output="no" returntype="struct" access="remote">
  <cfargument name="gridPage" type="numeric" />
  <cfargument name="gridPageSize" type="numeric" />
  <cfargument name="gridSortColumn" type="string" />
  <cfargument name="gridSortDirection" type="string" />
  <cfscript>
    var myQuery = getData();
  </cfscript>
  <cfreturn queryConvertForGrid(myQuery, ARGUMENTS.gridPage, ARGUMENTS.gridPageSize) />
</cffunction>
<!--- ::getData():: --->
<cffunction name="getData" output="no" returntype="query" access="remote">
  <cfscript>
    var myQuery = queryNew("column1,column2,column3,column4,column5,column6,column7,column8,column9,column10,column11,column12", "varchar,bit,varchar,varchar,bit,varchar,varchar,varchar,bit,varchar,varchar,varchar");
    queryAddRow(myQuery, 3);
    myQuery.column1[1] = "one";
    myQuery.column2[1] = true;
    myQuery.column3[1] = "three";
    myQuery.column4[1] = "four";
    myQuery.column5[1] = false;
    myQuery.column6[1] = "six";
myQuery.column7[1] = "seven";
myQuery.column8[1] = "eight";
myQuery.column9[1] = true;
myQuery.column10[1] = "ten";
myQuery.column11[1] = "eleven";
myQuery.column12[1] = "twelve";
  </cfscript>
  <cfreturn myQuery />
</cffunction>
<!--- ::setGridData():: --->
<cffunction name="setGridData" access="remote" returntype="void">
  <cfargument name="gridAction" type="string" required="yes" />
  <cfargument name="gridRow" type="struct" required="yes" />
  <cfargument name="gridChanged" type="struct" required="yes" />
</cffunction>
</cfcomponent>

    This topic has been closed for replies.

    1 reply

    itisdesign
    Inspiring
    November 17, 2009

    If .zip cannot be opened, here is the image (attached).