PDA

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



rodiniz
15 Dec 2006, 4: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
15 Dec 2006, 4:22 AM
You'll have to stop that added row from being sorted...

rodiniz
15 Dec 2006, 5:15 AM
Good catch...any idea how to do that?

Animal
15 Dec 2006, 5: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
15 Dec 2006, 6:11 AM
Thanks for the light...now its working as it should.