-
22 Sep 2009 4:12 AM #11
How can I only group the first level of headers (the original column headers)?
In other words, to replace the existing column header instead of adding a header row to represent a group header.
thanks
-
22 Sep 2009 4:25 AM #12Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
The original (first-level) headers need to be rendered, because the GridPanel baseclass expects them to be present.
But that doesn't mean you can't hide them with display:none!
-
22 Sep 2009 4:34 AM #13
Thanks, so do you mean I've to explicitly get the DOM of header and set the CSS to display:none?
any faster way to achieve this?
PS: I've tried to inspect the DOM in firebug and set the <div> to display:none, the header space is still exist in the <td> ...
If I set the <td> to display:none, the whole header's layout will be corrupted. But I can't add the colspan to the grid original header...
Since this groupHeader plugin renders the header rows in separate <table>s, the alignment of header cells cannot be dependently aligned.
-
23 Sep 2009 4:33 AM #14
-
25 Sep 2009 7:43 AM #15
-
28 Sep 2009 3:24 AM #16
Great share! I have noticed that the dataIndex column defined in the GroupHeaderGrid becomes unsortable. Only the first column has this problem.
LE: The next group of header column has no working sortable column...Any fixes ?
Thanks.
-
28 Sep 2009 3:35 AM #17
-
2 Oct 2009 10:10 AM #18
Thank you so, so much for sharing this! It's exactly what I was looking for.

-
3 Oct 2009 6:24 AM #19
Condor:
I'm trying to dynamically update the GroupHeader header value from store JSON data but I'm having problems.
This is because I want the dynamic JSON response from the store to update my Group Column Headers. I'm making a 2 day calendar style grid view - so my previous and next buttons load the store and return data and 2 new dates/days which I want to display in the header.
I currently do this to standard GridPanel columnHeaders by doing either:
or with:Code:myStore.on('load', function() { myColumnModel.setConfig([ {header: "New Header", dataIndex: 'foo'} ]) }
Code:myStore.on('load', function() { myColumnModel.setColumnHeader(1, 'New Header'); }I want to change Tuesday/Wednesday dynamically to values from my JSON.Code:| Tuesday | Wednesday | ----------------------------------------------- | 8 | 9 | 10 | 11 | 12 | 8 | 9 | 10 | 11 | 12 | -----------------------------------------------
If you have any suggestions for how I could implement this I would be eternally grateful! Sorry if i've rambled on with too useless detail.
Thanks
Martin
-
3 Oct 2009 7:28 AM #20Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Modify grid.getColumnModel().rows and call grid.getView().updateHeaders() (calling grid.getColumnModel().setConfig() will also update the headers).


Reply With Quote

