[CLOSED] Layout Issue in Hidden Container

  1. #1

    [CLOSED] Layout Issue in Hidden Container

    Hi,

    The subject may not be 100% correct. Here's an issue which has taken me looooong to identify. Run the following code in IE you will get an error "Invalid Argument". This is specific to ComboBox. To remove the error, do either of the following:

    1) Set the FieldLabel property of cmbMonthlyWeekOfMonth. The error will disappear.
    2) Remove the Hidden Property of conMonthly container.

    <ext:Panel runat="server" Height="80" ID="recurringOptionsPanel" Border="false">
        <Items>
            <ext:Container ID="conMonthly" Hidden="true" ForceLayout="true" runat="server" Layout="fit" PaddingSummary="5 0 0 0"
                Height="40">
                <Items>
                    
                    <ext:Panel runat="server" ID="panel1" Border="false">
                        <Items>
                            <ext:HBoxLayout ID="HBoxLayout4" runat="server" PaddingSummary="5 0 0 0">
                                <BoxItems>
                                    <ext:BoxItem Flex="2">
                                        <ext:ComboBox runat="server" ID="cmbMonthlyWeekofMonth" SelectedIndex="0">
    <Template ID="ctl249"></Template>
                                            <Items>
                                                <ext:ListItem Text="First" Value="1" />
                                                <ext:ListItem Text="Second" Value="2" />
                                                <ext:ListItem Text="Third" Value="3" />
                                                <ext:ListItem Text="Fourth" Value="4" />
                                                <ext:ListItem Text="Last" Value="5" />
                                            </Items>
                                        </ext:ComboBox>
                                    </ext:BoxItem>
                                </BoxItems>
                            </ext:HBoxLayout>
                        </Items>
                    </ext:Panel>
                </Items>
            </ext:Container>
        </Items>
    </ext:Panel>
  2. #2

    RE: [CLOSED] Layout Issue in Hidden Container

    Hi,

    Fixed. Please update from SVN
  3. #3

    RE: [CLOSED] Layout Issue in Hidden Container

    Works!...Can you suggest me a better way to debug... The errors are so weird that it gets really difficult to pinpoint the precise problem.... Like in this case the error was "Invalid Argument"... Going through IE debugger was a pain...
  4. #4

    RE: [CLOSED] Layout Issue in Hidden Container

    Hi,

    Just enable debugging in the IE and VS will intercept any js error if you run application in the debug mode under VS (and switch to the js code where arror is appeared) . You will get ability to debug js code using VS debugger


    Here is few articles
    http://msdn.microsoft.com/en-us/library/z959x58c.aspx
    http://www.wrox.com/WileyCDA/Section...id-305946.html




Similar Threads

  1. Replies: 2
    Last Post: Jan 06, 2012, 6:54 PM
  2. Container layout problem
    By norphos in forum 1.x Help
    Replies: 1
    Last Post: May 25, 2011, 9:54 AM
  3. [CLOSED] GridPanel does not render when inside hidden container
    By jjones in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 01, 2011, 9:13 PM
  4. Replies: 3
    Last Post: Nov 22, 2010, 2:32 PM
  5. Replies: 4
    Last Post: Dec 30, 2009, 1:31 AM

Posting Permissions