Maximum column value

Maximum column value

bejesbejes Posts: 1Questions: 0Answers: 0
edited October 2010 in General
Is there a simple way or plugin to get the maximum value of a column? eg Table will have say 3 columns and i want to highlight the td with the maximum value for each column. I would do it server side, but thought it might be easier via datatables.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    There isn't a plug-in for this at the moment, but it should be a fairly easy one to implement. Just loop over the rows and look for the highest number. Possibly the fastest way to to loop over the fnSettings().aoData[x]._aData[y] array (where x is the row and y is the column).

    Allan
This discussion has been closed.