[CLOSED] Auto Height

  1. #1

    [CLOSED] Auto Height

    hi,

    how to set the gridpanel height 100%. Please explain with code.

    i use the code StyleSpec="height:100%" . but its not working.
  2. #2

    RE: [CLOSED] Auto Height

    Hi,

    The GridPanels Height can be set to a fix height (px), or you can place the GridPanel inside a Layout control, such as <ext:FitLayout> that will stretch the GridPanels height and width to fill it's parent container. The parent container can be another other Panel, such as <ext:Panel> or <ext:ViewPort>


    Hope this helps.


    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] Auto Height

    hi,



    still its not working. the sample code is below,


    
    <ext:Panel ID="Panel1" runat="server" >
    
    
    <Content>
    
    
    <ext:FitLayout ID="FitLayout1" runat="server">
    
    
    
    
    
    
    
    
    <ext:GridPanel ID="GridPanel1" runat="server" StoreID="Store1" StripeRows="true"
    
    
    Border="false" >
    
    
    
    
    
    <ColumnModel ID="ColumnModel2" runat="server" >
    
    
    <Columns> 
    
    
    
    
    
    
    
    
    
    
    
    
    <ext:Column ColumnId="Company" Header="Company" Sortable="true" DataIndex="Name" /> 
    
    
    <ext:Column Header="Price"  Sortable="true" DataIndex="Price"/> 
    
    
    <ext:Column Header="Change"  Sortable="true" DataIndex="Change"/> 
    
    
    <ext:Column Header="Change"  Sortable="true" DataIndex="PctChange"/> 
    
    
    </Columns>
    
    
    </ColumnModel> 
    
    
    <BottomBar>
    
    
    <ext:PagingToolBar ID="PagingToolBar2" PageSize="20" runat="server" StoreID="Store1" DisplayInfo="false" />
    
    
    </BottomBar>
    
    
    
    
    
    
    
    
    </ext:GridPanel> 
    
    
    
    
    
    </ext:FitLayout> 
    
    
    </Content>
    
    
    </ext:Panel>
  4. #4

    RE: [CLOSED] Auto Height

    Please set fixed Height on Panel, or use <ext:ViewPort> if you want the container to fill the complete browser window.*

    Geoffrey McGill
    Founder

Similar Threads

  1. Auto height on CenterLayout example page
    By Alexx in forum 1.x Help
    Replies: 7
    Last Post: Apr 29, 2013, 3:25 PM
  2. Vertical Auto Height
    By Zdenek in forum 1.x Help
    Replies: 5
    Last Post: Dec 01, 2011, 8:34 PM
  3. problem with ext panel auto height
    By venu.sn2009 in forum 1.x Help
    Replies: 2
    Last Post: Aug 10, 2011, 8:12 AM
  4. How to set auto height for a panel?
    By ganesh.tony in forum 1.x Help
    Replies: 0
    Last Post: Jul 01, 2011, 5:26 AM
  5. [CLOSED] CheckboxGroup Auto-Width/Height adjust
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 21, 2010, 10:05 AM

Posting Permissions