:: Forum >>

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
malba
Friday, June 4, 2010
i forgot other thing

i use other examples in the forum, that uses a internal array associated to the grid

var myData = [["","",""]];
...
...
obj.setCellText(myData);
...
...

but get the same result, the data show both the grid walking as the associated table are not the same as seen in the cells of the grid
malba
Friday, June 4, 2010

This topic is archived.


Back to support forum

Forum search