Mar 09, 2021, 9:49 PM
Add a GridPanel within TabPanel
How to add a GridPanel within one of the tabs of a tabpanel?
<ext:TabPanel runat="server" ID="TabPanel1" width="800" height="600">
<Items>
<ext:Panel runat="server" Title="Panel with grid inside">
<Items>
<ext:GridPanel runat="server" Title="My Grid Panel" Width="200" Height="200" />
</Items>
</ext:Panel>
<ext:GridPanel runat="server" Title="Grid as a tab itself"></ext:GridPanel>
</Items>
</ext:TabPanel>
Notice how the first grid needs width/height. It means the surrounding panel's layout will be followed. When you add the grid straight to the tab panel, its title is the tab handle name, and its contents will fit the tab panel. As it would a normal panel with the border or fit -- among a few other -- layouts.