glarkou
glarkou

Reputation: 7101

Easy comparison between table rows

I am using DataTables JQuery plugins and I would like to ask the following two questions.

Can I somehow perform those operations through DataTables or I have to prepare the data before passing it to the DataTables?

Thanks.

PS:

I suppose I need something similar to this trirand.net/examples/grid/functionality/footer/default.aspx but for DataTables plugin. In addition to that I need some formulas for rows as well. – salamis just now edit

Upvotes: 2

Views: 317

Answers (1)

Allan Jardine
Allan Jardine

Reputation: 5463

Use mRender ( http://datatables.net/ref#mRender ) for the last column. mRender, when used as a function, has access the the data source object for the row (third parameter), so you can easily do a quick sum and then return the calculated value :-).

Upvotes: 2

Related Questions