PDA

View Full Version : Grid simple totals



Erick
15 Sep 2009, 10:23 AM
Hi,

It's possible create a simple grid with plugin summary (grid not grouped) ?

Link summary:
http://www.extjs.com/deploy/dev/examples/grid/totals.html

anyone tried it?

jarlau
15 Sep 2009, 6:48 PM
grouping is optional for GroupSummary ux.

Erick
16 Sep 2009, 3:51 AM
I try created the summary grid ungrouped but I had no success...

when grouped worked...

could give me some example how to be?

jarlau
16 Sep 2009, 5:49 AM
oops...I'm using this ux (http://www.extjs.com/forum/showthread.php?p=111221#post111221).

riets003
16 Sep 2009, 10:54 AM
is this of any help?

http://www.extjs.com/forum/showthread.php?p=111221#post111221

Erick
17 Sep 2009, 5:00 AM
hi,

I took the plugin gridSummary and could do a sum of a column is for all pages.

following code:


Ext.ux.grid.GridSummary.Calculations = {

tsum: function(v, record, colName, data, rowIdx) {
return record.store.reader.jsonData.totais['TSUM'+colName];
}
}


I needed to work in the totals in my Json ..

Now, I have a problem ..
step when I leave next page using the generic total and I will use per page.


any ideas?

Erick
17 Sep 2009, 9:41 AM
I resolved this problem.

I not looked carefully for the type of totals in my json..

tks, everybody.

Animal
17 Sep 2009, 9:45 AM
Even simpler: http://www.extjs.com/forum/showthread.php?t=80579

Just plug it in and it totals any numeric columns.