[CLOSED] GridPanel Layout Issue

  1. #1

    [CLOSED] GridPanel Layout Issue

    I have a page in master page with the following layout:

    <form id="Search" runat="server">
        <div style="padding:10px;">
            <div class="page-title">Search</div>
                
            <ext:Panel runat="server" BodyBorder="false" StyleSpec="padding-top:10px;">
                <LayoutConfig>
                    <ext:ColumnLayoutConfig FitHeight="false" Split="false" Margin="10" />
                </LayoutConfig>
                <Items>
                    <ext:Panel ID="Criteria" runat="server" Width="250" Title="Criteria" Layout="Form" LabelAlign="Top" Padding="10" Icon="Magnifier">
                        <Items>
                        </Items>
                        <Buttons>
                            <ext:Button ID="SearchBtn" runat="server" Text="Search" Icon="Magnifier">
                                <DirectEvents>
                                    <Click OnEvent="SearchClick">
                                        <EventMask ShowMask="true" Msg="Please wait..." />
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                        </Buttons>
                    </ext:Panel>
                    <ext:Panel runat="server" Layout="Fit">
                        <Items>
                            <ext:GridPanel ID="Results" runat="server" Title="Results" AutoExpandColumn="FirstName" TrackMouseOver="true" StripeRows="true" Icon="MagnifierZoomIn">
                                <Store>
                                    <ext:Store runat="server">
                                        <Reader>
                                            <ext:JsonReader>
                                                <Fields>
                                                    <ext:RecordField Name="FirstName" />
                                                    <ext:RecordField Name="LastName" />
                                                </Fields>
                                            </ext:JsonReader>
                                        </Reader>
                                    </ext:Store>
                                </Store>
                                <ColumnModel>
                                    <Columns>
                                        <ext:Column ColumnID="FirstName" DataIndex="FirstName" Header="First Name" />
                                        <ext:Column ColumnID="LastName" DataIndex="LastName" Header="Last Name" />
                                    </Columns>
                                </ColumnModel>
                                <SelectionModel>
                                    <ext:RowSelectionModel runat="server" SingleSelect="true" />
                                </SelectionModel>
                            </ext:GridPanel>
                        </Items>
                    </ext:Panel>
                </Items>
            </ext:Panel>
        </div>
    </form>
    I can't get the panel surrounding the grid OR the grid itself to expand to the width of the page on the first load of the page (which it will contain no data to start). What do I need to do to accomplish this?

    It looks like the attached document.

    Thanks.
    Attached Thumbnails Click image for larger version. 

Name:	Capture.PNG 
Views:	96 
Size:	6.6 KB 
ID:	3371  
    Last edited by Daniil; Oct 27, 2011 at 6:55 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please clarify what was the reason to use FitHeight="false"?

    FitHeight="true" should help.
  3. #3
    Changing the column layout FitHeight="true" causes the panels to shrink and not show all contents that are in other columns. Like in this post:
    http://forums.ext.net/showthread.php...D-Layout-issue

    Basically, we want the height to be auto, but the width to fit the width of the page. But, it isn't doing that.
  4. #4
    I think you need to set up ColumnWidth="1" for the Panel which is the second item of the Panel with a ColumnLayout.
  5. #5
    Setting ColumnWidth=1 worked.

    I tried everything except that.

    Thanks again. You guys are the best!

Similar Threads

  1. Replies: 15
    Last Post: Sep 19, 2017, 6:15 PM
  2. [CLOSED] layout issue when using RowLayout within column layout
    By Daly_AF in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 11, 2012, 2:40 PM
  3. [CLOSED] Layout issue
    By alliedwallet.com in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 14, 2011, 4:36 PM
  4. Gridpanel layout issue in IE8
    By reinout.mechant@imprss.be in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 24, 2009, 1:12 PM
  5. [CLOSED] Issue with gridpanel rendering within a fit layout
    By Dave.Sanders in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 22, 2008, 6:42 PM

Posting Permissions