PDA

View Full Version : Making a Sum or Avg of a column


rodiniz
12-15-2006, 07:18 AM
Just see..
http://www.rodrigodiniz.qsh.eu/sumarize.aspx
And please click the google ads to help this site stay alive.
Thanks.

Animal
12-15-2006, 07:22 AM
You'll have to stop that added row from being sorted...

rodiniz
12-15-2006, 08:15 AM
Good catch...any idea how to do that?

Animal
12-15-2006, 08:29 AM
Try overriding sort in your DataModel. Make the new function pop the last row off the data array, call YAHOO.ext.grid.DefaultDataModel.sort(), and then push it back on.

rodiniz
12-15-2006, 09:11 AM
Thanks for the light...now its working as it should.