tracker issue : CF-3741675

select a category, or use search below
(searches all categories and all time range)

cfgrid: clicking on the delete button deletes the selected row, but results in an error.

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Piyush Kumar Nayak)

Created: 04/12/2014

Components: AJAX, UI Components

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: 289775 /

Priority/Frequency: Normal / Few users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Listed in the version Issues Fixed doc
cfgrid: clicking on the delete button results in an error.


click on the delete buttom. The selected row is deleted, but the following error is reported in the browser degugger.

Uncaught TypeError: undefined is not a function cfgrid.js:720
$G.deleteRow cfgrid.js:720
Ext.define.fireHandler ext-all.js:18
Ext.define.onClick ext-all.js:18
(anonymous function) VM1722:6
h ext-all.js:18

no errors should be reported.

Workaround: n/a

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3741675

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:



Verified this issue doesn't exist in CF11 Update 3 (11,0,03,292024(PreRelease)). But unable to reproduce this on CF 11,0,0,289822. Using the following code, no error was thrown in the browser debugger when deleting a row on 11,0,0,289822 (and 11,0,03,292024(PreRelease)): Application.cfc ----------- component { = "ticket_CF-3741675";} index.cfm ----------- <cfform> <cfgrid format="html" name="myGrid" width="300" autowidth="yes" selectmode="edit" selectonload="false" onChange="cfc:MyCFC.setGridData({cfgridaction},{cfgridrow},{cfgridchanged})" bind="cfc:MyCFC.getGridData({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})" delete="yes"> <cfgridcolumn name="id" /> <cfgridcolumn name="mycolumn" /> </cfgrid> </cfform> MyCFC.cfc ----------- <cfcomponent output="no"> <!--- ::getGridData():: ---> <cffunction name="getGridData" access="remote"> <cfargument name="gridPage" type="numeric" /> <cfargument name="gridPageSize" type="numeric" /> <cfargument name="gridSortColumn" type="string" /> <cfargument name="gridSortDirection" type="string" /> <cfquery name="local.myQuery"> SELECT * FROM ticket_CF-3741675 </cfquery> <cfreturn queryConvertForGrid(local.myQuery, ARGUMENTS.gridPage, ARGUMENTS.gridPageSize) /> </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" /> <cfif ARGUMENTS.gridAction is "D"> <cfquery name="myQuery"> DELETE FROM ticket_CF-3741675 WHERE id = <cfqueryparam cfsqltype="cf_sql_integer" value="" /> </cfquery> </cfif> </cffunction> </cfcomponent> Table ticket_CF-3741675 just has 2 columns: 'id' (int) and 'mycolumn'. Thanks!, -Aaron
Comment by External U.
12665 | November 08, 2014 03:00:22 AM GMT