When I add my Table in this customlayout, and make its height 100%, only header of table shown, if I make height in pixels then table data is already showing, I want my height in % so please tell me what should I do.
if I add same table in Vertical layout , everything works fine…
You need to specify the containing table’s and its TR and TD elements a height also (currently undefined). Use either percentage values or fixed pixels, however you get it working the way you want to.
This is because Vaadin components, when set to relative size, do not “push” the containing element. They expect the containing element to have a specified size (DOM getOffsetWidth/Height will return other than zero) for percentage sizes to work.
and now the Grid is get data, but Still one small problem, when I used custom layout , it show a small margin 1 pixel on all corners , if I removed it and use vertical layout , the Table is added with out any margin space, in layout html I explicitly check there is no margin as such.
Here you can see that Grid has one white pixel space around all corners…