Jun 06, 2011, 10:06 PM
GridPanel Layout
I tried looking in the forums but I haven't found a solution that works
I have two GridPanels in a Tab panel (one grid in each tab). I cannot get the grid to fit to the container (even if I use Layout="FitLayout"). When I do that, I see the grid with only one row and a scrollbar on the right that is super small.
If I use Autofit=true, then the grid is expanded and the container has a vertical scroll bar that scrolls the container (so the user cant see the grid header when scrolled to the bottom) and there is no horizontal scrollbar even though the grid is wider than the page.
Also, the grids are in seperate user controls because they are used in other parts of the project.
Thanks,
Amit
I have two GridPanels in a Tab panel (one grid in each tab). I cannot get the grid to fit to the container (even if I use Layout="FitLayout"). When I do that, I see the grid with only one row and a scrollbar on the right that is super small.
If I use Autofit=true, then the grid is expanded and the container has a vertical scroll bar that scrolls the container (so the user cant see the grid header when scrolled to the bottom) and there is no horizontal scrollbar even though the grid is wider than the page.
Also, the grids are in seperate user controls because they are used in other parts of the project.
<ext:TabPanel ID="pnlTier1Center" runat="server" Border="false">
<Items>
<ext:Portal ID="pnlTier1FCAT" runat="server" Border="false" Title="FCAT Analysis" AutoScroll="true" Layout="BorderLayout">
<Items>
<ext:Panel Region="Center" runat="server">
<Content>
<uc1:FCATGrid ID="FCATGrid1" runat="server" />
</Content>
</ext:Panel>
</Items>
</ext:Portal>
<ext:Portal ID="pnlTier1Risk" runat="server" Border="false" Title="Risk Factors" AutoScroll="true" Layout="BorderLayout" >
<Items>
<ext:Panel ID="Panel1" Region="Center" runat="server">
<Content>
<uc6:riskFactors ID="riskFactors1" runat="server" />
</Content>
</ext:Panel>
</Items>
</ext:Portal>
.
.
.
<ext:GridPanel ID="GridPanel1" runat="server" Title="" Frame="false" AutoHeight="true">
Any ideas of what combo of Layout/Region to use to get the grid to fit with the scrollbars?Thanks,
Amit
Last edited by AmitM; Jun 06, 2011 at 10:13 PM.