3.2.0

deleteRow bug

There is a problem, I think, with Grid.deleteRow(row) on line 227 in lib\grid\control.js in active widgets 2.0.0. The problem occurs when when i==0:

this.setCurrentRow(i>0 ? a[i-1] : -1);


In general it works fine, but "callback" functions may throw an error in that the row id passed back is undefined.

var mailToLinkFunction = function (colInd, rowInd) {
var href = gridArray[rowInd][colInd];
//get an exception here after calling because rowInd is undefined
}

grid.setCellTemplate(new AW.Templates.Link);
grid.setCellLink(mailToLinkFunction);


My workaround was to essentially comment out that line.

DT
July 27,

This topic is archived.

See also:


Back to support forum