Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
205
I Need Help Understading igtbl_addNew
posted

I've been seeing a common theme in all client side inserts and I'm trying to understand it.

Take this code for example:

var row = igtbl_addNew(grid.Id, bandIndex); 

if (grid.Rows.length-1 >= index)

{

grid.Rows.remove(grid.Rows.length-1);

grid.Rows.insert(row, index); 

}

Why are we removing the last row of the grid everytime before the insert? 

And what exactly is igtbl_addNew(grid.Id, 0) doing?

Can someone explain exactly what's going on here?

Thanks.