Feb 10, 2010, 4:20 PM
[CLOSED] [1.0] GridPanel in a TabPanel
Hello,
With the following example how can I make the gridpanel and the bottom bar render properly when you click Panel 2?
Example.aspx:
1. Load page
2. Click Panel 2
3. Notice that the panel does not render the bottom bar and the first column is squished?
Also, I know it will automatically adjust when I bind a data source to a store on the grid panel, but the user must first select from a dropdown before loading the data ... so that isn't an option.
Cheers,
Timothy
With the following example how can I make the gridpanel and the bottom bar render properly when you click Panel 2?
Example.aspx:
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Example</title>
<ext:ResourcePlaceHolder ID="ResourcePlaceHolder" runat="server" />
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager" runat="server" Theme="Gray" />
<ext:Viewport runat="server" Layout="Border">
<Items>
<ext:Panel ID="Center" runat="server"
Region="Center">
<Content>
<ext:TabPanel ID="TabPanel1" runat="server"
Padding="10"
Plain="true">
<Items>
<ext:Panel ID="Panel1" runat="server"
AutoHeight="true"
Title="Panel 1">
<Content>
Panel 1
</Content>
</ext:Panel>
<ext:Panel ID="Panel2" runat="server"
AutoHeight="true"
Title="Panel 2">
<Content>
<ext:GridPanel ID="GridPanel1" runat="server"
AutoExpandColumn="Name"
Height="150">
<ColumnModel>
<Columns>
<ext:Column ColumnID="Name" DataIndex="Name" Header="Category" />
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel runat="server" />
</SelectionModel>
<BottomBar>
<ext:Toolbar runat="server">
<Items>
<ext:Button runat="server" Text="Button" />
</Items>
</ext:Toolbar>
</BottomBar>
</ext:GridPanel>
</Content>
</ext:Panel>
</Items>
</ext:TabPanel>
</Content>
</ext:Panel>
</Items>
</ext:Viewport>
</form>
</body>
</html>
Replication steps:1. Load page
2. Click Panel 2
3. Notice that the panel does not render the bottom bar and the first column is squished?
Also, I know it will automatically adjust when I bind a data source to a store on the grid panel, but the user must first select from a dropdown before loading the data ... so that isn't an option.
Cheers,
Timothy