Results 1 to 3 of 3

Thread: Default CSS Renders Grid with headers only

  1. #1
    abaer
    Guest

    Default Default CSS Renders Grid with headers only

    Is it me, or when I use the default CSS I get a table that has headers but no rows.

    If I remove the

    position: absolute;

    from the

    .ygrid-wrap-body

    Style, then the grid works great.

    By the way, I think you've done a wonderful job!

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    20
      0  

    Default

    Hi Abaer,

    It sounds like you don't have a size defined for your container element. Here's a quote from the tutorial post:

    Next we create our Grid object. The first parameter to the grid constructor is the container element where the grid is to be rendered. The grid adapts to the containers size - so the container MUST have a size. For example, rendering the grid to a div tag with no width and height specified will result in the grid adapting to a width and height of 0 and not appearing. Also, if the container does not have a position set of absolute or relative, the grid will automatically make it relative.


    When there is no size on the container element, only the headers appear, the grids body is width:100%, height:100% and overflow:auto. So it will fit itself to the container you put it in, but if you don't give that container a size, width:100% and height:100% will both be 0.

    This is the most common problem, but if that doesn't fix it for you, let me know.

    Thanks,
    Jack

  3. #3
    abaer
    Guest

    Default Thanks

    That fixed it. My mistake.

Similar Threads

  1. grid headers appear above dialog
    By ericwaldheim in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 8 Jan 2009, 11:43 PM
  2. Anything besides strings in grid headers?
    By willogee in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 28 Feb 2008, 6:57 AM
  3. Nested headers with grid?
    By KRavEN in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 10 May 2007, 6:21 AM
  4. Fixed Grid column headers
    By jmakeig in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 28 Feb 2007, 2:25 PM
  5. Grid with vertical AND horizontal headers?
    By Kikinou in forum Community Discussion
    Replies: 8
    Last Post: 28 Dec 2006, 4:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •