:: Forum >>

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);

My workaround was to essentially comment out that line.

Thursday, July 27, 2006

This topic is archived.

Back to support forum

Forum search