Difference between #2 and #3 of
Keeping a running total in a CGridView

Revision #3 has been created by Steve Friedl on Mar 12, 2011, 6:24:10 PM with the memo:

Added tydeas to the acknowledgements
« previous (#2) next (#5) »

Changes

Title unchanged

Keeping a running total in a CGridView

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

CGridView

Content changed

This tip created in conjunction with IRC #yii channel users **emilsedgh** and **tydeas** - thanks!

When using [CGridView] to display rows of data, each one is independent of the other - this is normally what we want. But a cases requiring a running total (say, the current balance in a bank account register or a running inventory count) are more tricky because of no shared context.

This How-to introduces the [CGridColumn] component and how to extend it to provide this running total (which may inspire other uses as well).
[...]
22 0
19 followers
Viewed: 41 602 times
Version: 1.1
Category: How-tos
Tags: CGridView
Written by: Steve Friedl
Last updated by: tydeas_dr
Created on: Mar 12, 2011
Last updated: 12 years ago
Update Article

Revisions

View all history