PDA

View Full Version : Grid: Locked Columns and Summary feature



biohazardo
7 Jun 2012, 1:26 AM
ExtJS 4.0.7
I want to display summary in grid with locked columns.


...
features: [Ext.create("Ext.grid.feature.Summary")],
...
var columns = [
{
header:"Somecolumn",
width:425,
locked:true,
...

And I don't see summary there. When I delete locked:true, it shows. How to fix it?

scottmartin
7 Jun 2012, 11:53 AM
Do you mean like this example:
http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/grid/locking-group-summary-grid.html

Scott.

biohazardo
8 Jun 2012, 1:21 AM
In ExtJS4.0.7 that way isn't working. To see summary we need to set feature at locked and normal views, and then summary will work.



this.lockedViewConfig = {
features: [Ext.create("Ext.grid.feature.Summary")]
};
this.viewConfig = {
features: [Ext.create("Ext.grid.feature.Summary")],
.......
}

scottmartin
8 Jun 2012, 5:37 AM
We are recommending that everyone upgrade to 4.1 if at all possible. There were many fixed and updates from 4.07 that correct many pending issues.

Scott.