3.2.0

Add a row at the bottom of the Grid

Hi All ~
I need to add a row to the bottom of my Grid after data loads.

I found this code in the forum somewhere and it works fine:
function addRow(){
var rowData = ["Col1", "Col2", "Col3", "Col4", "Col5"]
myData.unshift(rowData);
obj.setRowProperty("count", myData.length);
}

But the new row is added to the top of the grid, not the bottom. This should be a very simple thing to do but I can't figure it out.

I use an onLoad event handler in the body tag so that I know the data is loaded prior to adding the new row and I've also tested it with a small timeout fucntion so I know it's doing what I think it's doing.

Can anyone point me in the right direction?
Tx,
brians
April 29,
Bump...
Nevermind, I found the solution:
myData.push(rowData);
brians
April 29,

This topic is archived.

See also:


Back to support forum