rowGroup data table
rowGroup data table
risho
Posts: 3Questions: 1Answers: 0
Hello, I am using a datatable for inserting data. The display of the datatable is done with rowGroup. I need help, I would like when entering, the td of the rowGroups automatically calculate the sum of the column of the group concerned
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
Answers
Are you looking for something like this example?
https://datatables.net/extensions/rowgroup/examples/initialisation/customRow.html
Kevin
Yes but in data entry mode.
Please provide a link to your page or a test case replicating how you are doing data entry so we can offer suggestions.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
http://live.datatables.net/janoteyi/1/edit?html,css,js,output
I want to have the total column age for each group when entering data.
I updated your example:
http://live.datatables.net/gowuhupa/1/edit
I added the RowGroup library (.js and .css) includes. I added a
change
event handler to update the Datatables data cache with the updated input value. TherowGroup.endRender
function usescells().nodes()
to sum all the input values in the group.Kevin