real add and real delelete rows in the grid
hello
i use the example "\examples\grid elements - rows\add delete row.htm" for add and delete rows in the grid
we need to get the data visible in the grid after add rows or delete rows
how i get the real data in the grid, because if i show the content of the grid, this not shows the correct data
i put another button "show content" that show the data in the grid with this function
var cadena='';
for ( var i=0; i <obj.getRowCount(); i++)
{
for (var j=0; j< obj.getColumnCount(); j++)
{
cadena = cadena + " * " + obj.getCellValue(j,i) + " * ";
}
cadena = cadena + "###"
}
alert(cadena)
*******************************************
cadena shows bad data, show rows that i deleted
this is all for now
thanks
i use the example "\examples\grid elements - rows\add delete row.htm" for add and delete rows in the grid
we need to get the data visible in the grid after add rows or delete rows
how i get the real data in the grid, because if i show the content of the grid, this not shows the correct data
i put another button "show content" that show the data in the grid with this function
var cadena='';
for ( var i=0; i <obj.getRowCount(); i++)
{
for (var j=0; j< obj.getColumnCount(); j++)
{
cadena = cadena + " * " + obj.getCellValue(j,i) + " * ";
}
cadena = cadena + "###"
}
alert(cadena)
*******************************************
cadena shows bad data, show rows that i deleted
this is all for now
thanks
malba
June 4,