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
}
oDatagrid.setRowProperty("count", aDatagridData.length);
function dataGrid_deleteRows(oDatagrid, aDatagridData)
{
selectedRows = oDatagrid.getSelectionProperty("values"); //get selected rows
var ERASED = 0;
for (i=selectedRows.length-1; i>=0; i--) //delete rows, starting by the last selected row
{
aDatagridData.splice(selectedRows[i], 1)
ERASED ++
}
oDatagrid.setRowProperty("count", aDatagridData.length - ERASED ); //set new row count
oDatagrid.refresh(); //refresh the table
oDatagrid.setSelectionProperty("index", null); //clear selection
}
oDatagrid.setRowProperty("count", aDatagridData.length - ERASED ); //set new row count
oDatagrid.setRowProperty("count", aDatagridData.length [b]- 1[/b]); //set new row count
oDatagrid.refresh(); //refresh the table
oDatagrid.setRowProperty("count", aDatagridData.length - 1); //set new row count
oDatagrid.refresh(); //refresh the table
ar testlijst_data = [
["80", "Cardamine lyrata", "5 cm post", "13", "4.35", "0", "0"],
["170", "Hygrophyla stricta tai", "5 cm pot", "24", "1.9", "0", "0"],
];
aArray = [1,2,3,]
alert (aArray.length) //will display 3 in FF, 4 in IE
bArray = [1,2,3]
alert (bArray.length); //will display 3 in both FF and IE
This topic is archived.