Here's a tip when using addRow() with the new 4.0 Listgrid:
"Always remember to wrap the block of code adding multiple rows in a beginUpdate() / endUpdate() block."
I just wasted quite a bit of time wondering why the page was taking forever to load and why the display wasn't updated on that one.
All the components in 4.0 have beginUpdate() and endUpdate(). You should use them whenever you are adding a lot of data or setting a lot of properties. They keep the engine from doing excessive screen updates.
Add a Comment