how to get SUM with Server-side-processing ?
how to get SUM with Server-side-processing ?
Keyser_Soze
Posts: 22Questions: 0Answers: 0
Hi,
Thanks for this great plugin :)
I'm facing a problem and i'm stuck. I have tables using server-side-processing and i need to get SUM for columns.
I tried to search on this forum but i can't find the solution.
Please could anyone show me how to do this or give me a link that explain the procedure and how it works.
Thanks.
Thanks for this great plugin :)
I'm facing a problem and i'm stuck. I have tables using server-side-processing and i need to get SUM for columns.
I tried to search on this forum but i can't find the solution.
Please could anyone show me how to do this or give me a link that explain the procedure and how it works.
Thanks.
This discussion has been closed.
Replies
So you really have two choices: develop some server-side code that returns your sum (you could probably sneak it into a hidden row, or anywhere else that data can be returned), or on the client side grab the contents of your column and sum them with JavaScript. If you do it client-side, just remember that you will only have access to data that's in the page. Usually server-side processing is used because you have thousands of records and only want to display a subset... that being the case, a client-side sum would only tally up the subset.
Allan