PROBLEM cannot addrows into a grid after change the preview tab, seemd ther are two different instances of grid.
FIX grid.js was taking the ancient instange of the grid, since a new one is been displayed th old not. the addGridRow() method not points to the new instance.