don’t have mainLayout as setSizeFull(). that means that the height is calculated to a pixel amount, and everything outside that pixel amount is cut out. The default (setWidth(“100%”); setHeight(null) is good for you, so just remove that row. This will work if you have it inside something that supports scrolling, like the main window. If this layout is inside another layout, then it won’t scroll. To get around this problem, use a Panel as that supports scrolling (mainWindow is in fact a sort of a panel). Create a new Panel, set the panel to setSizeFull(); and set the layout as content (setContent(mainLayout).
public class MyGrid extends Grid{}
I am getting records for the grid from the database. As the number of records grow in size, I am not able to see all the rows as I am not getting the vertical scroll bar.
So, I added the grid to a Panel, so that when contents overflows panel will automatically add vertocal scrollbar. But unfortunately I am not getting the Vertical Scroll bar.