well, it's dficult to explain it.
This is what i do:
DataTable table = new DataTable();
TableRow dataRow = new TableRow();
for(int i =0; i < 150; i++)
{
dataRow.addCell(object.getMeasure1());
dataRow.addCell(object.getMeasure2());
dataRow.addCell(object.getMeasure3());
table.addRow(dataRow);
dataRow = new TableRow();
}
(Sorry if there are some mistakes, but I don't have my code here now).
What I don't want to do is to create new TableRow every time I run into
de "for" becouse it seems that i will load a lot the server if there are
some of this petitions at the same time.
My question is if there is another possiblitie like clear data or something.
Thank you, and sorry for my english.
Marc
El , NA <[email protected]> escribió:
Would using removeRow() work for you?
If you want to remove the row and replace it with a row containing
default values, then create a default row and insert it using
insertRows().
Does that solve the problem you're running into?
--
You received this message because you are subscribed to the Google
Groups "Google Visualization API" group.
To post to this group, send email to
[email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google
Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.