Mar 02, 2016, 2:32 PM
[CLOSED] ext:panel width expands past 100% with asp:gridview
I have a simple ext:panel that is collapsed on load.
There is an asp:gridview inside the panel with the width set to 700px. When the panel loads, the panel is 100% of the width of the page. When the panel opens the width of the panel expands to 110% of the page width even though the gridview takes up less than half of the page width.
This worked correctly in v1 but doesn't work correctly in v3.
There is an asp:gridview inside the panel with the width set to 700px. When the panel loads, the panel is 100% of the width of the page. When the panel opens the width of the panel expands to 110% of the page width even though the gridview takes up less than half of the page width.
This worked correctly in v1 but doesn't work correctly in v3.
<ext:Panel runat="server" Title="Schedule" ID="pnlSched" Collapsible="true" TitleCollapse="true" >
<Content>
<asp:GridView ID="gvSchedule" runat="server" AutoGenerateColumns="False" RowStyle-Wrap="False" RowStyle-Height="20px" Width="700px" CssClass="gridview" AllowPaging="false" AllowSorting="False" HorizontalAlign="Left" EnableTheming="False" GridLines="Horizontal">
<Columns>
<asp:BoundField DataField="COURSENAME" HeaderText="Course Name">
<HeaderStyle HorizontalAlign="Center" Wrap="False" />
<ItemStyle HorizontalAlign="Left" Wrap="False" Width="200px" />
</asp:BoundField>
<asp:BoundField DataField="COURSEID" HeaderText="Course ID">
<HeaderStyle HorizontalAlign="Center" Wrap="False" />
<ItemStyle HorizontalAlign="Center" Wrap="False" Width="50px" />
</asp:BoundField>
<asp:BoundField DataField="SECTION" HeaderText="Section">
<HeaderStyle HorizontalAlign="Center" Wrap="False" />
<ItemStyle HorizontalAlign="Center" Wrap="False" Width="50px" />
</asp:BoundField>
<asp:BoundField DataField="PERIOD" HeaderText="Period">
<HeaderStyle HorizontalAlign="Center" Wrap="False" />
<ItemStyle HorizontalAlign="Center" Wrap="False" Width="50px" />
</asp:BoundField>
<asp:BoundField DataField="ROOMNUMBER" HeaderText="Room #">
<HeaderStyle HorizontalAlign="Center" Wrap="False" />
<ItemStyle HorizontalAlign="Center" Wrap="False" Width="60px" />
</asp:BoundField>
<asp:BoundField DataField="Teacher" HeaderText="Teacher">
<HeaderStyle HorizontalAlign="Center" Wrap="False" />
<ItemStyle HorizontalAlign="Left" Wrap="False" Width="200px" />
</asp:BoundField>
</Columns>
<HeaderStyle BackColor="#4b6c9e" Font-Size="X-Small" ForeColor="White" HorizontalAlign="Center" VerticalAlign="Middle" />
<AlternatingRowStyle ForeColor="Black" BackColor="GhostWhite" Font-Bold="False" />
<FooterStyle BackColor="#4b6c9e" />
<RowStyle Font-Bold="False" Wrap="False" />
<EmptyDataTemplate>
<div>
<table width="100%" border="0">
<tr align="left">
<td align="left" valign="top" class="Alert"> No Courses to Display.</td>
</tr>
</table>
</div>
</EmptyDataTemplate>
</asp:GridView>
</Content>
</ext:Panel>
Last edited by fabricio.murta; Mar 22, 2016 at 11:22 PM.
Reason: no user feedback for 7+ days