Hybrid View

  1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    4
    Vote Rating
    0
    jdgrieco is on a distinguished road

      0  

    Default Render don't display header

    Render don't display header


    If I call myGrid.render() when container's display style is set to 'none' all data is normally rendered, but header is not. Is this the correct behavior?

    part of my code:

    Code:
    <div id="grid_example" style="display: none; height: 150px;">
    </div>
    
    <script type="text/javascript">
    
    var myColumns = [
    {header: "Col 1", width: 200, sortable: true},
    {header: "Col 2", width: 400, sortable: false},
    {header: "Col 3", width: 75, sortable: false}
    ];
    var columnModel = new YAHOO.ext.grid.DefaultColumnModel(myColumns);
    
    var myData = [
    [1,2,3],
    [2,3,4]
    ];
    var dataModel = new YAHOO.ext.grid.DefaultDataModel(myData);
    
    var ExGrid = new YAHOO.ext.grid.Grid('grid_example', dataModel, columnModel);
    
    ExGrid.render();
    
    document.getElementById('grid_example').style.display = 'block';
    </script>
    tks, those extesions are remarkables!

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    Rendering with display:none can potentially cause a lot of problems. Especially in the new version. The grid does measuring/positioning internally and with display:none, those measurements aren't available.

    If you want it hidden before render, you should use visibility:hidden.

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    4
    Vote Rating
    0
    jdgrieco is on a distinguished road

      0  

    Default


    TKS, again.

    I'll try.

Similar Threads

  1. IE display problems
    By wilzmodz in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 31 Mar 2007, 8:54 AM
  2. Header does not render if div is not visible.
    By zeek in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 5 Mar 2007, 11:05 AM
  3. [OPEN] Bug in Dialog Render
    By Bobafart in forum Ext 1.x: Bugs
    Replies: 12
    Last Post: 14 Feb 2007, 7:40 PM
  4. Can i display a tab again after close it?
    By kirk in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 4 Dec 2006, 3:48 PM
  5. Cannot display 0 in grid
    By alcarx in forum Ext 1.x: Bugs
    Replies: 1
    Last Post: 16 Oct 2006, 2:54 AM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar