Sep 03, 2012, 9:19 PM
autoheight when using content tag in panel dont work
i got all the data displaying and stuff except autoheight does not work. i am using a repeater in the content section of the panel which repeats ext controls(panel, fieldset, label and a button). even though i enable autoheight the panel doesn't adjust its size according to the content being repeated.
Please help me.
Please help me.
<%--BOTTOM RIGHT PANEL--%>
<ext:Panel runat="server" ID="Panel1" Title="Search For Solution" Flex="3" Icon="BookMagnify" AutoScroll="True">
<Items>
<%--BOTTOM RIGHT PANEL SEARCH SECTION--%>
<ext:Panel ID="pnlSearchProbDescription" runat="server">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Center" />
</LayoutConfig>
<Items>
<ext:Container runat="server">
<LayoutConfig>
<ext:HBoxLayoutConfig Align="Middle" />
</LayoutConfig>
<Items>
<ext:TextField runat="server" ID="txtProbDesc" FieldLabel="Problem description" Width="300"
Margins="20" LabelWidth="110" />
<ext:Button runat="server" ID="btnSearchProbDesc" Text="Search" Padding="2" Margins="0 0 0 10"
Icon="Magnifier" OnClick="BtnSearchProbDescClick" AutoPostBack="True">
</ext:Button>
</Items>
</ext:Container>
</Items>
</ext:Panel>
</Items>
<%--repeater 1 for problems--%>
<Content>
<asp:Repeater ID="rptrProblems" runat="server">
<ItemTemplate>
<%--Hidden textbox for Problem ID to be used in repeater 2--%>
<ext:TextField runat="server" ID="txtProbid" InputType="Hidden" Text='<%# Eval("PROB_ID") %>' />
<%--Custom Design to view problems--%>
<ext:Panel ID="pnlProbs" runat="server" BodyPadding="10" Border="false" Collapsible="True"
Collapsed="False" Title='<%# "Problem ID: " + Eval("PROB_ID")%>' TitleAlign="Left" Height="300">
<Items>
<ext:FieldSet ID="fdstProbDescription" runat="server" Title="Problem Description">
<Items>
<ext:Label ID="lblProbDesc" runat="server" Text='<%# Eval("Description") %>' />
</Items>
</ext:FieldSet>
</Items>
<Content>
<%--REPEATER 2 FOR SOLUTIONS--%>
<asp:Repeater ID="rptrSolutions" runat="server">
<ItemTemplate>
<%--Custom design to view solutions--%>
<ext:Panel runat="server" ID="pnlSolutionDesc" Title='<%# "Solution ID: " + Eval("SOL_ID") %>'
Collapsible="True" Border="false" Collapsed="True">
<Items>
<ext:FieldSet ID="fdstSolDescription" runat="server" Title="Solution Description">
<Items>
<ext:Label ID="lblSolDesc" runat="server" Text='<%# Eval("Description") %>' />
</Items>
</ext:FieldSet>
</Items>
<Buttons>
<ext:Button runat="server" ID="btnSelectSol" Text="Select Solution" Padding="2" Margins="0 10 10 0" Icon="ArrowEw" />
</Buttons>
</ext:Panel>
</ItemTemplate>
<%--CLOSE 2ND REPEATER FOR SOLUTIONS--%>
</asp:Repeater>
</Content>
</ext:Panel>
</ItemTemplate>
</asp:Repeater>
<%--CLOSE 1ST REPEATER FOR PROBLEMS--%>
</Content>
</ext:Panel>
<%--BOTTOM RIGHT PANEL CLOSED--%>