Refresh after setRowProperty("count") causes error in IE
Hi,
Im using 1.0. I made a function to delete rows:
which works fine in FF, but is causing trouble in IE6. In IE i get a error about aDatagridData, which doesnt exist according to IE.
When i remove
the script works fine, but I have to use this function in order to get the desired functionality.
Anybody an idea how to fix?
Im using 1.0. I made a function to delete rows:
function dataGrid_deleteRows(oDatagrid, aDatagridData)
{
selectedRows = oDatagrid.getSelectionProperty("values"); //get selected rows
for (i=selectedRows.length-1; i>=0; i--) //delete rows, starting by the last selected row
{
aDatagridData.splice(selectedRows[i], 1)
}
oDatagrid.setRowProperty("count", aDatagridData.length); //set new row count
oDatagrid.refresh(); //refresh the table
oDatagrid.setSelectionProperty("index", null); //clear selection
}
which works fine in FF, but is causing trouble in IE6. In IE i get a error about aDatagridData, which doesnt exist according to IE.
When i remove
oDatagrid.setRowProperty("count", aDatagridData.length);
the script works fine, but I have to use this function in order to get the desired functionality.
Anybody an idea how to fix?
Rekcor
August 26,