Workaround for FormGroup=true Collapse=true causing combo display issues on load

  1. #1

    Workaround for FormGroup=true Collapse=true causing combo display issues on load

    I ran into the same issue as described in this post http://forums.ext.net/showthread.php?2635 . When a panel is turned into a formgroup and collapse=true in designer, on page load the width of the list in the combobox is too small.

    I have multiple controls that were rendering incorrectly and I didn't want to set the width for everything so the workaround I used was to not set the collapse in the designer:

    
    <ext:Panel ID="Panel3" runat="server" Border="false" 
                width="900" Title="Advanced Search" AutoHeight="true"
                BodyStyle="padding:5px" FormGroup="true" >
    and then in the code behind PreRender added:

    
            If Not Page.IsPostBack And Not Ext.IsAjaxRequest Then
                Me.Panel3.Collapse(False)
            End If
    worked perfect! I wasn't sure what forum you would want this under. Cheers~
    Last edited by geoffrey.mcgill; Jan 11, 2011 at 10:18 PM.

Similar Threads

  1. Replies: 5
    Last Post: Dec 27, 2012, 10:29 AM
  2. Title of Panel with FormGroup=true
    By wdk in forum 1.x Help
    Replies: 6
    Last Post: Mar 23, 2012, 4:29 PM
  3. Replies: 0
    Last Post: May 28, 2010, 1:09 PM
  4. Replies: 0
    Last Post: May 04, 2010, 7:08 AM
  5. Replies: 3
    Last Post: Aug 15, 2009, 2:55 PM

Posting Permissions