I am working with layout panels and datagrid. When I set the datagrid height to 100%, Grid is not rendering. My panel hierarchy looks like the following image
Am I doing it properly or I messed up the panel hierarchy???
Parent panel is the simple layout panel, inside that I have split layout panel -> scrollpanel -> datagrid
DataGridrequires to be put in aLayoutPanelorPanelthat implements theProvidesResizeinterface to be visible.ScrollPanelimplements that interface.Furthermore this chain of
LayoutPanelsfrom yourDataGridup to your root element/panel has to be unbroken. That seems to be the case in your panel hierarchy.Finally you have to use the
RootLayoutPanelinstead of theRootPanelto add yourLayoutPanels.So did you make sure that you add your
SimpleLayoutPanelto theRootLayoutPanel?