jQuery UI Widgets › Forums › Grid › Cumulative sum in row column
Tagged: #jqwidgets-grid, beforeLoadComplete, grid, grid column cumulative sum, javascript grid, jquery grid
This topic contains 1 reply, has 2 voices, and was last updated by Hristo 6 years, 5 months ago.
Hi,
I have a case where i need to get the cumulative sum of a grid column and display it in another column in each row, e.g. displaying the running balance of a client in a statement of account. Is it possible?
Hello Abdo,
You could use pre-calculation as in this demo: https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/createremoveupdatedata.htm?light But you should use beforeLoadComplete callback to make this pre-calculation. Also, I would like to suggest you look at this topic and the example mentioned there: https://www.jqwidgets.com/community/topic/grid-aggregates-with-computed-column/
Best Regards, Hristo Hristov
jQWidgets team http://www.jqwidgets.com
You must be logged in to reply to this topic.