[CLOSED] Spacing requirements inside Panel

  1. #1

    [CLOSED] Spacing requirements inside Panel

    Ignore the SelectionModel, Buttons, etc. What I am wondering is how to get rid of the whitespace in between the Panel and the GridPanel (there is about 1/2" white space, I hope to get GridPanel to shack-up tightly against the Panel) and the only way it works is to have 2 headers, which is fairly pointless (I currently have GridPanel header disabled)



    <ext:Tab ID="Tab7"
    
    
    runat="server" 
    
    
    Title="Postings" 
    
    
    BodyStyle="padding:0px;">
    
    
    <Body>
    
    
    <ext:ColumnLayout ID="ColumnLayout6" runat="server">
    
    
    <ext:LayoutColumn ColumnWidth=".5">
    
    
    <ext:Panel ID="Panel6" runat="server" Border="false" Title="Applied To">
    
    
    <Body> 
    
    
    
    
    
    <ext:GridPanel runat="server" ID="GridPanel1" Header="false" StoreID="Store1" Frame="true" AutoWidth="true" Height="140">
    
    
    <ColumnModel ID="ColumnModel1" runat="server">
    
    
    <Columns>
    
    
    <ext:Column ColumnID="PostingID" Header="Posting #" Width="65" DataIndex="PostingID" />
    
    
    <ext:Column DataIndex="CourseCode" Header="Course Code" Width="130" />
    
    
    </Columns>
    
    
    </ColumnModel>
    
    
    <SelectionModel>
    
    
    <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true">
    
    
    <AjaxEvents>
    
    
    <RowSelect OnEvent="RowSelectAppliedTo" Buffer="250">
    
    
    <EventMask ShowMask="true" Target="CustomTarget" CustomTarget="#{Details}" />
    
    
    <ExtraParams>
    
    
    <%-- or can use params[2].id as value --%>
    
    
    <ext:Parameter Name="RowID" Value="this.getSelected().id" Mode="Raw" />
    
    
    <ext:Parameter Name="JobClassCode" Value="this.getSelected().data.JobClassCode" Mode="Raw" />
    
    
    </ExtraParams>
    
    
    </RowSelect>
    
    
    </AjaxEvents>
    
    
    </ext:RowSelectionModel>
    
    
    </SelectionModel>
    
    
    <Buttons>
    
    
    <ext:Button ID="btnCreateNew" runat="server" Text="Create New" Icon="Add">
    
    
    <Listeners>
    
    
    <Click Handler="#{Window1}.show();" />
    
    
    </Listeners>
    
    
    </ext:Button>
    
    
    </Buttons>
    
    
    </ext:GridPanel> 
    
    
    </Body>
    
    
    </ext:Panel> 
    
    
    </ext:LayoutColumn>
    
    
    
    
    
    </ext:ColumnLayout> 
    
    
    </Body>
    
    
    </ext:Tab>
    this code is random, if you need a basic Array store, use this so you can get the GridPanel to show

    
    
    
    <script runat="server">
    
    
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    
    
    If (Ext.IsAjaxRequest = False) Then
    
    
    Store1.DataSource = New Object() { _
    
    
    New Object() {"3m Co", 71.72, 0.02, 0.03, "9/1 12:00am"}, _
    
    
    New Object() {"Alcoa Inc", 29.01, 0.42, 1.47, "9/1 12:00am"}, _
    
    
    New Object() {"Altria Group Inc", 83.81, 0.28, 0.34, "9/1 12:00am"}, _
    
    
    New Object() {"American Express Company", 52.55, 0.01, 0.02, "9/1 12:00am"}, _
    
    
    New Object() {"American International Group, Inc.", 64.13, 0.31, 0.49, "9/1 12:00am"}, _
    
    
    New Object() {"AT&amp;T Inc.", 31.61, -0.48, -1.54, "9/1 12:00am"}, _
    
    
    New Object() {"Boeing Co.", 75.43, 0.53, 0.71, "9/1 12:00am"}, _
    
    
    New Object() {"Caterpillar Inc.", 67.27, 0.92, 1.39, "9/1 12:00am"}, _
    
    
    New Object() {"Citigroup, Inc.", 49.37, 0.02, 0.04, "9/1 12:00am"}, _
    
    
    New Object() {"E.I. du Pont de Nemours and Company", 40.48, 0.51, 1.28, "9/1 12:00am"}, _
    
    
    New Object() {"Exxon Mobil Corp", 68.1, -0.43, -0.64, "9/1 12:00am"}, _
    
    
    New Object() {"General Electric Company", 34.14, -0.08, -0.23, "9/1 12:00am"}, _
    
    
    New Object() {"General Motors Corporation", 30.27, 1.09, 3.74, "9/1 12:00am"}, _
    
    
    New Object() {"Hewlett-Packard Co.", 36.53, -0.03, -0.08, "9/1 12:00am"}, _
    
    
    New Object() {"Honeywell Intl Inc", 38.77, 0.05, 0.13, "9/1 12:00am"}, _
    
    
    New Object() {"Intel Corporation", 19.88, 0.31, 1.58, "9/1 12:00am"}, _
    
    
    New Object() {"International Business Machines", 81.41, 0.44, 0.54, "9/1 12:00am"}, _
    
    
    New Object() {"Johnson &amp; Johnson", 64.72, 0.06, 0.09, "9/1 12:00am"}, _
    
    
    New Object() {"JP Morgan &amp; Chase &amp; Co", 45.73, 0.07, 0.15, "9/1 12:00am"}, _
    
    
    New Object() {"McDonald's Corporation", 36.76, 0.86, 2.4, "9/1 12:00am"}, _
    
    
    New Object() {"Merck &amp; Co., Inc.", 40.96, 0.41, 1.01, "9/1 12:00am"}, _
    
    
    New Object() {"Microsoft Corporation", 25.84, 0.14, 0.54, "9/1 12:00am"}, _
    
    
    New Object() {"Pfizer Inc", 27.96, 0.4, 1.45, "9/1 12:00am"}, _
    
    
    New Object() {"The Coca-Cola Company", 45.07, 0.26, 0.58, "9/1 12:00am"}, _
    
    
    New Object() {"The Home Depot, Inc.", 34.64, 0.35, 1.02, "9/1 12:00am"}, _
    
    
    New Object() {"The Procter &amp; Gamble Company", 61.91, 0.01, 0.02, "9/1 12:00am"}, _
    
    
    New Object() {"United Technologies Corporation", 63.26, 0.55, 0.88, "9/1 12:00am"}, _
    
    
    New Object() {"Verizon Communications", 35.57, 0.39, 1.11, "9/1 12:00am"}, _
    
    
    New Object() {"Wal-Mart Stores, Inc.", 45.45, 0.73, 1.63, "9/1 12:00am"} _
    
    
    }
    
    
    
    
    
    Me.Store1.DataBind()
    
    
    End If
    
    
    End Sub
    
    
    </script>
    
    
    
    
    
    
    <ext:ScriptManager ID="ScriptManager1" runat="server" /> 
    
    
    
    
    
    <ext:Store ID="Store1" runat="server">
    
    
    <Reader>
    
    
    <ext:ArrayReader>
    
    
    <Fields>
    
    
    <ext:RecordField Name="company" />
    
    
    <ext:RecordField Name="price" Type="Float" />
    
    
    <ext:RecordField Name="change" Type="Float" />
    
    
    <ext:RecordField Name="pctChange" Type="Float" />
    
    
    <ext:RecordField Name="lastChange" Type="Date" DateFormat="n/j h:ia" />
    
    
    </Fields>
    
    
    </ext:ArrayReader>
    
    
    </Reader>
    
    
    </ext:Store>
  2. #2

    RE: [CLOSED] Spacing requirements inside Panel

    Hi jsemple,

    Adding a Layout control between the Panel.Body and GridPanel should help.

    Example

    <ext:Panel ID="Panel6" runat="server" Border="false" Title="Applied To">
        <Body> 
            <ext:FitLayout runat="server"> <--- Add Layout Control between Panel and GridPanel
                <ext:GridPanel runat="server" ID="GridPanel1" Header="false" StoreID="Store1" Frame="true" Height="140">
    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] Spacing requirements inside Panel

    Fits like a glove! Thanks, that was a rather easy fix...

Similar Threads

  1. [CLOSED] Calendar basic requirements?
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 12, 2011, 9:28 AM
  2. [CLOSED] Panel inside of a framed panel
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 13, 2011, 9:35 PM
  3. Replies: 7
    Last Post: Feb 01, 2011, 11:00 AM
  4. [CLOSED] Container Spacing
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 19, 2010, 8:12 PM
  5. Replies: 0
    Last Post: Jan 25, 2009, 4:36 AM

Posting Permissions