Sep 04, 2009, 3:23 PM
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:
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.