[1.0] gridpanel autoheight

  1. #1

    [1.0] gridpanel autoheight


    In 0.8.2 i had a grid that had the initial value of height="0", as i was adding data to it, i would set autoHeight = "true" and then call syncSize();

    In 1.0 it doesnt work anymore.

    #{GridPanel1}.autoHeight = true; #{GridPanel1}.syncSize();
  2. #2

    RE: [1.0] gridpanel autoheight


    Please read the following note from ExtJS documentation

    A grid requires a width in which to scroll its columns, and a height in which to scroll its rows. These dimensions can either be set explicitly through the <tt>height</tt> and <tt>width</tt> configuration options or implicitly set by using the grid as a child item of a Container which will have a layout manager provide the sizing of its child items (for example the Container of the Grid may specify <tt>layout:'fit'</tt>).

    Vladimir Shcheglov
    Sr. Developer
  3. #3

    RE: [1.0] gridpanel autoheight

    From what i understand, what i said is right

    <ext:GridPanel AutoExpandColumn="ColumnNome" Height="0" Border="false" HideHeaders="true"
        ID="GridPanel1" Cls="cell-border" runat="server" StoreID="StoreCnae" Width="450">
    I want to set this grid autoHeight property later, when I hide a window

            <ext:Button runat="server" Text="Ok">
                    <Click Handler="#{GridPanel1}.autoHeight = true; #{GridPanel1}.syncSize(); #{Window1}.hide();" />

Similar Threads

  1. [CLOSED] AutoHeight gridpanel and scrollbars
    By 78fede78 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 22, 2010, 5:06 PM
  2. [CLOSED] Gridpanel No Scroll Bar (Autoheight?)
    By JonG in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 10, 2010, 11:39 AM
  3. GridPanel autoHeight problem
    By salihb in forum Bugs
    Replies: 0
    Last Post: Aug 25, 2009, 3:16 AM
  4. [CLOSED] Gridpanel Autoheight
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 11, 2009, 9:42 AM
  5. [CLOSED] GridPanel AutoHeight and FitLayout
    By Penunuri in forum 1.x Help
    Replies: 4
    Last Post: Nov 27, 2008, 6:12 PM

Posting Permissions