|
|||||||
| View Poll Results: Was this helpful? | |||
| Yes - Very Much |
|
155 | 76.73% |
| Yes - Had to tweak it |
|
32 | 15.84% |
| No - Maybe |
|
7 | 3.47% |
| Not at All!!! |
|
8 | 3.96% |
| Voters: 202. You may not vote on this poll | |||
![]() |
|
|
Thread Tools |
|
#331
|
||||
|
||||
|
Thanks Guys!! Very Useful Plugin! and easy to implement.
|
|
#332
|
||||
|
||||
|
Just an improvement:
calculate : function(rs, cm) {
...
if (cf.summaryType) {
for (var j = 0, jlen = rs.length; j < jlen; j++) {
var r = rs[j]; // get a single Record
if(typeof cf.summaryType == 'function') {
data[cname] = cf.summaryType(r.get(cname), r, cname, data, j);
} else {
data[cname] = Ext.ux.grid.GridSummary.Calculations[cf.summaryType](r.get(cname), r, cname, data, j);
}
}
}
...
}
__________________
Project manager / coder @ xDesk ERP |
|
#333
|
||||
|
||||
|
Quote:
you're only moving the function call out of the Ext.ux.grid.GridSummary.Calculations object ![]() unless you're omitting that object altogether?
__________________
3.x - ( Docs | Examples | SVN Log ) / 2.x - ( Docs | Examples ) HOWTO - ( Report Bugs | Post Proper Code ) / Learn / Saki's Examples Forum Search (FF/IE plugin) / API Search (FF/IE plugin) |
|
#334
|
||||
|
||||
|
You're right, too many hours of coding sorry, i've just done it this way to avoid remembering the Ext.ux.grid.GridSummary.Calculations object and do it directly.
![]()
__________________
Project manager / coder @ xDesk ERP |
![]() |
| Thread Tools | |
|
|