-
7 Aug 2007 12:30 AM #11
[Solved - please ignore my post]
Hi,
how do you implement this with 1.1 of the Ext, when the function getGridEl() is not around anymore?
I've tried to get the element and then add the style to it.
My div structure looks like this:Code:var el = Ext.DomQuery.selectNode("div[@id='myGridId'] div[@class='x-grid-header']"); el.style.display="none";
<div id='myGridId'>
<div...>
<div...>
<div class='x-grid-header'>Last edited by torvad; 7 Aug 2007 at 11:42 PM. Reason: Issue solved
-
30 Jan 2009 10:49 AM #12
Another dynamic solution to show / hide grid header in extjs
Another dynamic solution to show / hide grid header in extjs
I have a grid which is heavily reused in many views of the app, with and without the header. I needed it to be configurable from the outside, so in my MyGridPanel class I've set a variable:
The following code adds CSS class to hide the grid in initComponent method:Code:showGridHeader: false // do not display grid header by default
In CSS, I have following:Code:if (!this.showGridHeader) { this.addClass('grid-no-header'); }
So now all grids will have no headers by default but I can easily make a particular grid instance to have the header by setting it's public showGridHeader property to true. I hope this will help someone ;)Code:.grid-no-header .x-grid3-header { display: none; }
-
18 Jan 2010 11:18 AM #13
Hiding Grid Header in Ext 3.0
Hiding Grid Header in Ext 3.0
When I am trying to execute the above code, it is hiding the header but in IE it is showing scrollbars in the grid. I think it is not able to set the width of the grid properly. How can I fix this problem?
If I set hideHeaders to true in grid config then this scrollbar problem is gone and also it hides the header in IE but my grid is not able to load data in firefox. The grid store has data but still my grid in empty in firefox. My grid is inside a tabpanel in Ext 3.0. Does anybody know why hideheaders is causing problem in firefox for tabpanel?
-
14 Aug 2012 11:19 PM #14
I was having this issue. This is what I did.
The mistake that I was doing was:Code:grid.on('afterlayout', function (comp) { if(comp.header) comp.header.setStyle('display', 'none'); });
Hope it helps!Code:grid.on('afterlayout', function (comp) { if(grid.header) grid.header.setStyle('display', 'none'); });
-
31 Jan 2013 6:28 AM #15
Since ExtJs 4 this is done by:
Code:hideHeaders: true
Similar Threads
-
how to hide the header of grid ?
By waynez in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 2 Apr 2007, 8:19 AM -
add a tooltip to a grid header
By jeandamien in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 30 Mar 2007, 4:07 AM -
Grid header hide
By seno in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 12 Mar 2007, 11:02 PM -
Grid Header Tooltips
By tryanDLS in forum Community DiscussionReplies: 7Last Post: 28 Nov 2006, 5:11 AM -
Need this.shim.hide() in hide func of BasicDialog
By kalebwalton in forum Community DiscussionReplies: 1Last Post: 25 Nov 2006, 4:29 PM


Reply With Quote