ydn-js origin

YUI version 2.5.1

Summary row not impacted by sorting

Challenge

Include a summary row that is not affected by column sorting.

Solution

Add a tfoot element to a DataTable in which to display summary information. The DataTable knows nothing of the tfoot, so sorting operations will not alter it.

Caveats: This solution is not likely compatible with set column widths, and possibly not scrolling tables (untested).