0
votes

Let's say I have this grid:

http://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/grid/group-header-grid.html

How can I add another header,panel or whatever we call it under the original headers :

http://img851.imageshack.us/img851/3537/panelnu.png

so that it would be indepentend of the columns beneath and over it and will take 100% width ?

2

2 Answers

1
votes

It's possible by modifying markup in afterrender listener in grid:

afterrender: function() {
    var view = this.getView();
    var el = view.getHeaderCt().getEl();

    var div = document.createElement('div');
    div.innerHTML = 'Header';
    el.dom.appendChild(div);
}

Here is working sample: http://jsfiddle.net/nUjmx/ You need only to style it.

1
votes

Add the Panel as a docked:'top' dockedItem with a high weight config (heavy weight items gravitate towards the center of the Panel)

So this Panel will be docked below the headers.