View Poll Results: Was this helpful?
- Voters
- 320. You may not vote on this poll
-
Yes - Very Much
247 77.19% -
Yes - Had to tweak it
43 13.44% -
No - Maybe
14 4.38% -
Not at All!!!
16 5.00%
-
21 Jan 2008 5:27 AM #11
Great work!

Please, is possible to have a screenshot or a live demo?
-
21 Jan 2008 5:44 AM #12



i've already included a drop-in example.
unzip the entire package into the official 2.0 download's examples/grid directory, open Ext.ux.grid.GridSummary.html in Firefox (via File > Open File), and off you go.
you don't even need to run a webserver for the example. what more do you need???
[edit]
as requested, here's a screenshot:

Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
21 Jan 2008 11:45 AM #13
thank god

hope this works... I had copied groupingview.js and added 'display:none' to the style line for the group header...then put everything in one group to use groupsummary.
Which worked...but a proper solution sounds a lot better
-
21 Jan 2008 11:52 AM #14
hmm...


I still like this look more
-
21 Jan 2008 5:46 PM #15
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
30 Jan 2008 4:41 AM #16
can it contains more than 2 summary row ?
can it contains more than 2 summary row ?
This plugin really helpfull,
does the plugin can contains more than 2 summary row ?
let's say the tables like this:
Thanks for helps.HTML Code:<table border="1" width="100%" id="table1"> <tr> <td> </td> <td align="center">US$</td> <td align="center">IDR</td> </tr> <tr> <td>ITEM 1</td> <td align="right">1000</td> <td align="right"> </td> </tr> <tr> <td>ITEM 2</td> <td align="right"> </td> <td align="right">900</td> </tr> <tr> <td>ITEM 3</td> <td align="right">100</td> <td align="right"> </td> </tr> <tr> <td>TOTAL US$</td> <td align="right">1100</td> <td align="right"> </td> </tr> <tr> <td>TOTAL IDR</td> <td align="right"> </td> <td align="right">900</td> </tr> </table>
-
30 Jan 2008 7:13 AM #17
nope. like the plugin name says, it's a single summary row.
you'll have to dig into the plugin code to add an arbitrary number of summary rows.
looking forward to your plugin
hint: you'll need to fiddle with the refreshSummary() method. look for the portion which handles deletion / insertion of the summary row into the wrapper div.
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
31 Jan 2008 2:33 PM #18
Hi this plug in is very cool, save many time, doing a quick test, when the grid don't have data in column using sum appear $NaN and in column like
appear 1 CompanyCode:{id:'company',header: "Company", width: 160, sortable: true, dataIndex: 'company', summaryType: 'count', summaryRenderer: function(v, params, data) { return ((v === 0 || v > 1) ? '(' + v +' Companies)' : '(1 Company)'); }},
regards
FrankLast edited by mystix; 31 Jan 2008 at 5:31 PM. Reason: use [code][/code] tags
-
31 Jan 2008 5:44 PM #19
@franklt69, i've fixed Ext.ux.grid.GridSummary.Calculations.Sum(), and changed the summaryRenderer to
(also uploaded a new zip file containing all these changes)Code:summaryRenderer: function(v, params, data) { return v? ((v === 0 || v > 1) ? '(' + v +' Companies)' : '(1 Company)') : ''; }
let me know how it turns out for you.
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
1 Feb 2008 6:31 AM #20
mystix I download the zip and changed summaryRenderer and now with 0 record the count don't appear, this is ok but yet in the column summaryType: 'sum' appear $NaN.00, should be hide like other, a little detail is when you have several column in the grid with the summary if the grid have horizontal scroll you can watching a column for instance email column and in the summary appear $700.00 so maybe will be good to set in the summary something like Total: $700.00 a field label, what do you thing?
regards
Frank


Reply With Quote


