[FIXED] [V0.7] Panel FormGroup (v0.7) doesn't work if set in code behind

  1. #1

    [FIXED] [V0.7] Panel FormGroup (v0.7) doesn't work if set in code behind

    I noticed there's a new FormGroup property on Ext:Panel that looks very slick. It works great if set in ASPX but not when set in code behind. Here's a sample page to reproduce:

    ASPX body
    <body>
    <script runat="server">
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim newAnchor As New Anchor
            Dim pnl As New Coolite.Ext.Web.Panel
            pnl.FormGroup = True
            pnl.Title = "Panel2"
    
            Dim text As New LiteralControl("Body2")
            pnl.BodyControls.Add(text)
    
            newAnchor.Items.Add(pnl)
    
            Me.pnlForm.Anchors.Add(newAnchor)
        End Sub
    </script>
    
        <form id="form1" runat="server">       
        <ext:ScriptManager ID="ScriptManager1" runat="server">
        </ext:ScriptManager>
        <ext:ViewPort runat="server">
            <Body>
                <ext:FitLayout runat="server">
                    <ext:Panel runat="server">
                        <Body>
                            <ext:FormLayout ID="pnlForm" runat="server">
                                <ext:Anchor>
                                    <ext:Panel runat="server" FormGroup="true" Title="Panel1">
                                        <Body>
                                            Body1
                                        </Body>
                                    </ext:Panel>
                                </ext:Anchor>
                            </ext:FormLayout>
                        </Body>
                    </ext:Panel>
                </ext:FitLayout>
            </Body>
        </ext:ViewPort>
        </form>
    </body>
  2. #2

    RE: [FIXED] [V0.7] Panel FormGroup (v0.7) doesn't work if set in code behind

    Hi jchau,

    The bug has been fixed. Please, update from SVN and try again

    Thanks for bug reporting

  3. #3

    RE: [FIXED] [V0.7] Panel FormGroup (v0.7) doesn't work if set in code behind

    Works great. Please mark this as [Solved]. Thanks!!!

Similar Threads

  1. Replies: 3
    Last Post: Feb 22, 2012, 12:56 PM
  2. Replies: 3
    Last Post: Jun 13, 2011, 4:17 PM
  3. Replies: 1
    Last Post: Dec 09, 2009, 12:10 PM
  4. Replies: 1
    Last Post: Oct 26, 2008, 5:49 PM
  5. Replies: 2
    Last Post: Mar 26, 2008, 9:41 AM

Posting Permissions