CFGrid and checkboxes

Page 1 of 1

0 Replies - 1733 Views - Last Post: 11 September 2009 - 07:22 AM Rate Topic: -----

#1 akraus   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 11-September 09

CFGrid and checkboxes

Posted 11 September 2009 - 07:22 AM

I have included the code. My problem is that I am always getting the error exception thrown and not caught despite adding cftry/cfcatch blocks. If I don't set selectmode="edit" and include onchange my grid displays except I get the word false displayed instead of a checkbox.

<cfgrid format="html" name="grid_Tables" pagesize="10" autowidth="true" striperows="yes" width = "99%" selectmode="edit" bind="CFC:qry_GetUser.getAllUsers({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{c fgridsortdirection})"onchange="cfc:qry_GetUser.editData({cfgridaction},{cfgridrow},{cfgridchanged})">
<cfgridcolumn name="UserID" display="No"/>
<cfgridcolumn name="opt" header="" type="boolean" width="46"/>
<cfgridcolumn name="Name" header="Name" width="150" type="string_nocase" select="no" />
<cfgridcolumn name="Email" header="EMail" width="150" type="string_nocase" select="no" />
<cfgridcolumn name="RegistrationDate" header="Registration Date" width="150" type="string_nocase" select="no" />

<cffunction name="editData" access="remote">
<cfargument name="gridaction" required="yes">
<cfargument name="gridrow" required="yes" type="Struct">
<cfargument name="gridchanged" required="yes" type="Struct">


The problem is that in edit mode I get an error thrown so the grid
doesn't display at all. I am wondering if I have a problem with:


Right now the editData function does nothing it is empty yet an error is still being thrown. I haven't been able to figure out where the error is being thrown. I have added catch/try blocks around the cfgrid as well as in the editData function but nothing is caught.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1