|
|
@@ -30,16 +30,6 @@ Ext.define('Ext.ux.feature.MySummary', {
|
|
|
|
|
|
me.callParent([grid]);
|
|
|
|
|
|
- // var mySummaryStore = grid.mySummaryStore = Ext.create('Ext.data.Store', {
|
|
|
- // fields: ['name', 'label', 'typeLabel', 'type', 'value'],
|
|
|
- // data: [{
|
|
|
- // name: 'xxx',
|
|
|
- // label: '111',
|
|
|
- // type: 'sum',
|
|
|
- // value: 0
|
|
|
- // }]
|
|
|
- // });
|
|
|
-
|
|
|
grid.on({
|
|
|
mysummarychange: me.refreshData,
|
|
|
scope: me
|
|
|
@@ -129,54 +119,6 @@ Ext.define('Ext.ux.feature.MySummary', {
|
|
|
newSummarys = me.getSummarys(grid);
|
|
|
|
|
|
summaryBar.update(newSummarys);
|
|
|
-
|
|
|
- // if (!view.rendered) {
|
|
|
- // return;
|
|
|
- // }
|
|
|
-
|
|
|
- // record = me.createSummaryRecord(view);
|
|
|
- // newRowDom = Ext.fly(view.createRowElement(record, -1)).down(selector, true);
|
|
|
-
|
|
|
- // if (!newRowDom) {
|
|
|
- // return;
|
|
|
- // }
|
|
|
-
|
|
|
- // // Summary row is inside the docked summaryBar Component
|
|
|
- // if (dock) {
|
|
|
- // p = me.summaryBar.item.dom.firstChild;
|
|
|
- // oldRowDom = p.firstChild;
|
|
|
-
|
|
|
- // p.insertBefore(newRowDom, oldRowDom);
|
|
|
- // p.removeChild(oldRowDom);
|
|
|
- // }
|
|
|
- // // Summary row is a regular row in a THEAD inside the View.
|
|
|
- // // Downlinked through the summary record's ID
|
|
|
- // else {
|
|
|
- // oldRowDom = view.el.down(selector, true);
|
|
|
- // p = oldRowDom && oldRowDom.parentNode;
|
|
|
-
|
|
|
- // if (p) {
|
|
|
- // p.removeChild(oldRowDom);
|
|
|
- // }
|
|
|
-
|
|
|
- // // We're always inserting the new summary row into the last rendered row,
|
|
|
- // // unless no rows exist. In that case we will be appending to the special
|
|
|
- // // placeholder in the node container.
|
|
|
- // p = view.getRow(view.all.last());
|
|
|
-
|
|
|
- // if (p) {
|
|
|
- // p = p.parentElement;
|
|
|
- // }
|
|
|
- // // View might not have nodeContainer yet.
|
|
|
- // else {
|
|
|
- // p = me.getSummaryRowPlaceholder(view);
|
|
|
- // p = p && p.tBodies && p.tBodies[0];
|
|
|
- // }
|
|
|
-
|
|
|
- // if (p) {
|
|
|
- // p.appendChild(newRowDom);
|
|
|
- // }
|
|
|
- // }
|
|
|
},
|
|
|
|
|
|
getSummaryBar: function() {
|